[ITK] [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/community/attachments/20150416/9613125c/attachment.html>
-------------- next part --------------
_____________________________________
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 Community mailing list