[ITK Community] [Insight-users] NthElement Image output
Bradley Lowekamp
brad at lowekamp.net
Tue Nov 5 20:21:17 EST 2013
Hello,
If I needed to perform a dot product I would use the BinaryFunctor infrastructure.
You may be able to just use the MultiplyImageFilter, if the pixel's "*" operator is the dot product.
Otherwise, I'd create a new functor, and then use then the template parameters for the BinaryFunctorImageFilter.
Sample filter usage:
http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/BinaryFunctorImageFilter
There are a lot of functor to choose from:
http://www.itk.org/Doxygen/html/namespaceitk_1_1Functor.html
Here is an example of a BinaryFunctor:
https://github.com/Kitware/ITK/blob/master/Modules/Filtering/ImageIntensity/include/itkAddImageFilter.h#L33
Brad
On Nov 5, 2013, at 8:02 PM, jmerkow <jmerkow at gmail.com> wrote:
> Thank You! I didn't know this class existed.
> I take it that this adapter is used to perform vector operations at the
> image level?
> My end goal is to perform a dot product of these gradients with a surface
> normal. Is this adapter usually used in something like this fashion?
>
> i.e. in combination with something like this:
> http://www.itk.org/Wiki/ITK/Examples/Math/DotProduct
>
>
>
> Jameson
>
>
>
> --
> View this message in context: http://itk-users.7.n7.nabble.com/NthElement-Image-output-tp32683p32685.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users
_____________________________________
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://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list