[ITK Community] [Insight-users] Setpixel value in ITK
Matt McCormick
matt.mccormick at kitware.com
Tue Nov 5 00:53:37 EST 2013
Hi Shiwei,
There is a SetPixel [1] method on itk::Image.
Hope this helps,
Matt
[1] http://www.itk.org/Doxygen/html/classitk_1_1Image.html#a56643f723aec193bba0b7a780736d073
On Mon, Nov 4, 2013 at 10:39 PM, shiwei <swingsw89 at 163.com> wrote:
> Hi,all~
> Now I have a question with itk. For example, I have a 3D image ,and
> I already know the index of one pixel, and only want to change the value of
> it . However if I use a sliceiterator to walk through the whole image it
> will be very slow for I only want to change few pixel values in this 3D
> image. Is there any other way to set the pixelvalue in the image without
> using an iterator when we have the index of the pixelvalue already? Thank
> you very much!
>
> shiwei
>
>
>
> _____________________________________
> 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.php
>
> 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
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
_____________________________________
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.php
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 Community
mailing list