[ITK] Using filters with images of different dimensions
Nicolas Gallego
nicgallego at gmail.com
Fri Oct 3 10:29:00 EDT 2014
Hi Fitze,
It seams that what you need is an image iterator. Find some information on
classes like
itkImageRegionIterator [1]
and further information on the software guide [2] on iterators chapter 6.
There are different flavors depending on what you need. You may consider
the WithIndex iterators since you mentioned you intent to use that image as
a lookup table.
I hope that helps,
[1] http://www.itk.org/Doxygen46/html/classitk_1_1ImageRegionIterator.html
[2] http://www.itk.org/ItkSoftwareGuide.pdf
Nicolás Gallego-Ortiz
Université catholique de Louvain, Belgium
2014-10-03 15:04 GMT+02:00 Fitze Thomas (fitz) <fitz at zhaw.ch>:
> Hi all
>
> My current situation:
> 1. 3D inputImage
> 2. calculate hessian matrix for the image
> 3. calculate trace of hessian matrix for each voxel
> 4. use GetAverageSliceImagefilter to get an average (along 1 dimension) of
> the hessian trace for each voxel in a slice. This reduces the size of this
> dimension to 1. I will call this the ‘averageTracePlane’.
>
> Now i want to use the averageTracePlane as a sort of lookup table for my
> inputImage and apply the corresponding averageTrace value. Or in pseudo
> code:
> inputImage(x,y,z) = some_constant * averageTracePlane(x,y,1)
>
> How do i set up a image filter that iterates over my inputImage and cycles
> through the averageTracePlane? I tried using a BinaryFunctorImageFilter,
> but could not figure out how to get it to “cycle" trough my
> averageTracePlane with dimension size 1.
>
> Thanks a lot,
> Thomas
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20141003/02a32a56/attachment-0002.html>
More information about the Community
mailing list