<div>Hi Daniel, </div><div><br></div><div>You would want to use iterators instead of SetPixel</div><div>and GetPixel. Chapter 11 of the itk manual explains </div><div>how to use them. Also, a simple example is given here </div>
<div><br></div><div><a href="http://www.vtk.org/Wiki/ITK/Examples/Iterators/ImageRegionIterator">http://www.vtk.org/Wiki/ITK/Examples/Iterators/ImageRegionIterator</a></div><div><br></div><div>Regards, </div><div>Cagatay</div>
<br><div class="gmail_quote">On Thu, Feb 9, 2012 at 6:19 PM, <span dir="ltr"><<a href="mailto:danieljohnsonusa@netscape.net">danieljohnsonusa@netscape.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm developing an application using itk libraries where I need to set Pixels in regions of a 3D MRI image. I started by building an application that based off of RGBImage where I use the SetPixel command from the itk libraries, but I noticed in the code that there is a comment stating that SetPixel()}and GetPixel() are inefficient and should only be used for debugging purposes. However, I've looked at a few other examples and have had a hard time finding the portion of the code where pixels are set. For example, I've been studying the DiscreteGaussianImageFilter in the itk libraries but I've had a hard time finding the part of the code where individual pixels are set. I would greatly appreciate if someone could help explain to me where in the code for filters like the DiscreteGaussianImageFilter that individual pixels are set so I can find a more efficient way than the SetPixel and GetPixel functions from RGBImage.<br>
<br>
<br>
Thanks,<br>
<br>
Daniel<br>
<br>
<br>
<br>
______________________________<u></u>_______<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/<u></u>products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/<u></u>listinfo/insight-users</a><br>
</blockquote></div><br>