[Insight-users] RescaleIntensityImageFilter

k s smythek at u.washington.edu
Wed May 10 00:12:14 EDT 2006


If you have negative values in your image, why are you declaring the
pixelTypes to be _UNSIGNED_ INT?  I think something along the lines of
'signed int PixelType' would be better.

 

Kathy

 

  _____  

From: insight-users-bounces+smythek=u.washington.edu at itk.org
[mailto:insight-users-bounces+smythek=u.washington.edu at itk.org] On Behalf Of
Michelangelo Paci
Sent: Tuesday, May 09, 2006 8:23 AM
To: insight-users at itk.org
Subject: [Insight-users] RescaleIntensityImageFilter

 

Hi,
I'm trying to rescale an UNSIGNED INT image [-181;33] to the intensity range
[0;255] with the RescaleIntensityImageFilter.
The rescaler is templated on a float image.
The result is a totally white image (254) with some black (0) pixels, and,
of course, this is not what I want.
I've also tried to cast the output of the rescaler to an unsigned int
format, but it's useless.
The same for templating the rescaler on a unsigned int format.
Could you help me?


Thanks
Michelangelo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060509/fc0c0eb8/attachment.html


More information about the Insight-users mailing list