<div dir="ltr">Dear Jan,<div><br></div><div>I'm not sure if there is a iterator that does that, but there are two other methods which could be used for what you desire.</div><div><br></div><div>1. Using vector images, </div><div><a href="http://www.itk.org/Doxygen/html/classitk_1_1VectorImage.html">http://www.itk.org/Doxygen/html/classitk_1_1VectorImage.html</a></div><div><a href="http://itk.org/Wiki/ITK/Examples/VectorImages/VectorImage">http://itk.org/Wiki/ITK/Examples/VectorImages/VectorImage</a><br></div><div><br></div><div>2. if the fourth dimension is fixed, then declare an image whose PixelType is a CovariantVector.</div><div><a href="http://www.itk.org/Doxygen/html/classitk_1_1CovariantVector.html">http://www.itk.org/Doxygen/html/classitk_1_1CovariantVector.html</a><br></div><div><br></div><div>both will then 3d iterators.</div><div><br></div><div>Hopefully this can be useful,</div><div>Regards,</div><div>Jose</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 3, 2015 at 3:02 PM, Jan Dorazil <span dir="ltr"><<a href="mailto:deu439@gmail.com" target="_blank">deu439@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I have a question on usage of iterators in ITK.<br>
<br>
I have 4d MRI image 255x255x21x5 where the 4th<br>
dimension is time.<br>
I would like to extract 5 features (only pixel intenzities)<br>
for each voxel in XxYxZ subvolume, ( along T axis).<br>
Then I need to supply these feature sets into a prediction<br>
model and as i receive predictions for each feature set I<br>
would like to reconstruct the image from these<br>
predictions.<br>
<br>
What kind of iterator shall I use to make sure that the<br>
feature extraction step (on 4d image) will iterate in the<br>
same order as the reconstruction step (on 3d image)?<br>
<br>
Regards,<br>
Jan Dorazil<br>
<br>
<br>
_____________________________________<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/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</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_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>