[ITK-users] extracting each component of the GradientRecursiveGaussianImageFilter
Pol Monsó Purtí
lluna.nova at gmail.com
Thu Apr 16 09:30:32 EDT 2015
Hello all,
The declaration of thefilter is
template<typename TInputImage, typename TOutputImage = Image<
CovariantVector< typename NumericTraits< typename TInputImage::PixelType
>::RealType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
In my case, ImageDimension = 3
So I have two questions.
Question number 1:
Does the output image hold, for each pixel, the three derivatives? Can they
be accessed by
it.Get()[0] it.Get()[1] it.Get()[2]
where it is itk::ImageRegionIterator< GradientImageType > it(
gradientImage,
gradientImage->GetRequestedRegion() );
?
Question number 2: (just for curiosity)
what happens when TOutputImage = Image< PixelType, Dimension> ?
and what happens when you create a writer with the default TOutputImage and
write to disk? Do the derivatives end in different channels or a magnitude
is computed?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150416/9613125c/attachment.html>
More information about the Insight-users
mailing list