[vtkusers] Scale Image Values to [0,1]
David Doria
daviddoria at gmail.com
Thu Sep 15 17:50:56 EDT 2011
On Thu, Sep 15, 2011 at 5:46 PM, HansAusBremen <hansausbremen at gmx.net>wrote:
> Hi everyone,
>
> I'm a vtk beginner and kind of despair of getting the values of an image to
> [0,1].
>
> I'm reading in a .raw-File with vtkImageReader, afterwards I want to do the
> Scaling so I can use vtkImageThreshold then (which still does not work the
> way i want it to either) to select a special range.
> Aftwerwards i do MarchingCubes (vtkMarchingCubes) to get a volume and
> render
> with the vtkRenderer after mapping with vtkPolyDataMapper and a vtkActor
> plus vtkProperty.
>
> I think I could use a LookUpTable but I'm not familiar with it in vtk.
>
> Thank you for responses.
> Hans
>
Did you look at vtkImageShiftScale? You'd have to compute the scale factor,
and then pass it to the filter with SetScale.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110915/78d36499/attachment.htm>
More information about the vtkusers
mailing list