[ITK-users] Iteration order 3d, 4d image

Jan Dorazil deu439 at gmail.com
Sun May 3 19:07:23 EDT 2015


Thank you,

I finally solved this problem using an iterator with index  from which
I calculate x and y coordinates into the output feature matrix.
Iteration might be a little slow, but it looks as the simplest solution.

Regards,
Jan Dorazil

On Sunday 03 of May 2015 22:41:35 you wrote:
> Dear Jan,
> 
> 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.
> 
> 1. Using vector images,
> http://www.itk.org/Doxygen/html/classitk_1_1VectorImage.html
> http://itk.org/Wiki/ITK/Examples/VectorImages/VectorImage
> 
> 2. if the fourth dimension is fixed, then declare an image whose PixelType
> is a CovariantVector.
> http://www.itk.org/Doxygen/html/classitk_1_1CovariantVector.html
> 
> both will then 3d iterators.
> 
> Hopefully this can be useful,
> Regards,
> Jose
> 
> On Sun, May 3, 2015 at 3:02 PM, Jan Dorazil <deu439 at gmail.com> wrote:
> > Hello,
> > I have a question on usage of iterators in ITK.
> > 
> > I have 4d MRI image 255x255x21x5 where the 4th
> > dimension is time.
> > 
> >  I would like to extract 5 features (only pixel intenzities)
> > 
> > for each voxel in XxYxZ subvolume, ( along T axis).
> > Then I need to supply these feature sets into a prediction
> > model  and as i receive predictions for each feature set I
> > would like to reconstruct the image from these
> > predictions.
> > 
> > What kind of iterator shall I use to make sure that the
> > feature extraction step (on 4d image) will iterate in the
> > same order as the reconstruction step (on 3d image)?
> > 
> > Regards,
> > Jan Dorazil
> > 
> > 
> > _____________________________________
> > 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://public.kitware.com/mailman/listinfo/insight-users



More information about the Insight-users mailing list