[Insight-users] OrientedImageAdaptor or ExtractOrientedImageFilter?
Constantine Zakkaroff
mnkz at comp.leeds.ac.uk
Mon Mar 16 15:43:55 EDT 2009
Dear ALL,
I'm looking for a way of extracting slices of arbitrary orientation
specified by any given orientation matrix. At the moment I can do it in
two different ways, but I suspect there should be a better way.
My first way is to resample the volume with the given orientation matrix
and then use ExtractImageFilter to get a slice.
The other way I tried is a bit more involved but it is closer to what I
need. First I construct an OrientedImage with the given orientation
matrix and then use ImageRegionIteratorWithIndex to traverse the pixels
and for each index obtained from the iterator I get the value of a pixel
in the corresponding physical location in the volume.
I'm wondering if it is possible (and sensible) to use something like
SpatialOrientationAdapter, but with an ability to set arbitrary
orientation matrix so that the image appears already resampled if I want
to extract a slice form it?
Or is there a way to cook up something like ExtractImageFilter that
would let me extract slices under any arbitrary orientation specified
through the given orientation matrix?
Thank you very much,
Constantine
More information about the Insight-users
mailing list