[Insight-users] Rescaling with fixed input boundaries
Bill Lorensen
bill.lorensen at gmail.com
Tue May 24 07:43:35 EDT 2011
You could use itkShiftScaleImageFilter. You'll need to compute the
proper Shift and Scale to accomplish your goals.
* ShiftScaleImageFilter shifts the input pixel by Shift (default 0.0)
* and then scales the pixel by Scale (default 1.0). All computations
* are performed in the precision of the input pixel's RealType. Before
* assigning the computed value to the output pixel, the value is clamped
* at the NonpositiveMin and max of the pixel type.
On Tue, May 24, 2011 at 3:35 AM, Lisa Koch <kochl at gmx.ch> wrote:
> Hi Everybody,
>
> I would like to set manually minimum and maximum of the input for rescaling greyvalues. I'm aware these functions have been removed from itkRescaleIntensityImageFilter. I found out I can use itkIntensityWindowingImageFilter to set minimum and maximum of my input, but I'm afraid that's still not what I want.
>
> My values will all be between 0.0 and 1.0 and I want to rescale the interval [0.0,1.0] to [0,255], independently of the minimum and maximum occurring value of the input image.
>
> I think (correct me if I'm wrong) itkIntensityWindowingImageFilter will cut off values outside the applied boundaries and THEN use the minimum and maximum occuring values for the rescaling, instead of using the specified values.
>
> Is there any other filter that will do what I want? Or does the itkIntensityWindowingImageFilter do the trick and I misinterpreted?
>
> Thanks in advance,
> Lisa
> --
> NEU: FreePhone - kostenlos mobil telefonieren!
> Jetzt informieren: http://www.gmx.net/de/go/freephone
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list