[Insight-users] using ImageRegionIterator will change the image value?

Luis Ibanez luis.ibanez at kitware.com
Thu Jan 22 23:55:48 EST 2009


Hi Han,

Reading pixels values from an image using a const iterator shouldn't change
the pixel values in that image.

1) What are you using to visualize your image ?
2) Is visualization the only mean that led you to conclude that your image
is brighter ?
3) Have you computed (objective) intensity statistics with the
ImageCalculator or
    with the StatisticsImageFilter ?


Please post your code...


     Thanks


           Luis


---------------------------------------------------------
On Thu, Jan 22, 2009 at 8:32 PM, Han D. F <jlu_hdf at 126.com> wrote:

>
>  hello ,
>
> I just use
>
> itk::ImageRegionConstIterator
>
> ImageRegionIterator
>
> to connect two 3d volumes to one 3d volume
>
>  I find the original iamges are more bright than the new volume.
>
> I can not explain the fact.
>
> The original images are 16 bit unsigned short. as
>
> typedef signed short InputPixelType;
>
> typedef signed short OutputPixelType;
>
> const unsigned int Dimension = 3;
>
> I also define the input and output image type as unsigned short.
>
> if there is something i missing?
>
> why they are different?
>
> best
>
> hdf
>
>
>
>
>
>
> ------------------------------
> 网易邮箱,中国第一大电子邮件服务商 <http://www.yeah.net>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090122/46a6a76b/attachment.htm>


More information about the Insight-users mailing list