<div class="gmail_quote">On Thu, Sep 15, 2011 at 5:46 PM, HansAusBremen <span dir="ltr">&lt;<a href="mailto:hansausbremen@gmx.net">hansausbremen@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi everyone,<br>
<br>
I&#39;m a vtk beginner and kind of despair of getting the values of an image to<br>
[0,1].<br>
<br>
I&#39;m reading in a .raw-File with vtkImageReader, afterwards I want to do the<br>
Scaling so I can use vtkImageThreshold then (which still does not work the<br>
way i want it to either) to select a special range.<br>
Aftwerwards i do MarchingCubes (vtkMarchingCubes) to get a volume and render<br>
with the vtkRenderer after mapping with vtkPolyDataMapper and a vtkActor<br>
plus vtkProperty.<br>
<br>
I think I could use a LookUpTable but I&#39;m not familiar with it in vtk.<br>
<br>
Thank you for responses.<br>
Hans<br></blockquote><div><br></div>Did you look at vtkImageShiftScale? You&#39;d have to compute the scale factor, and then pass it to the filter with SetScale.<br><br><div>David </div></div>