[Insight-developers] itkMagnitudeImageAdaptor?

Williams, Norman K norman-k-williams at uiowa.edu
Fri Sep 28 13:29:31 EDT 2012


I don't know if this comes up often enough to add it to the library.


This doesn't require much in the way of implementation; you write a
functor class, which is passed as a parameter to UnaryFunctorImageFilter
when you define your class. If you look at, for example
Modules/Filtering/ImageIntensity/include/itkAbsImageFilter.h, it should be
clear how to implement your Magnitude filter.


On 9/27/12 10:38 AM, "David Doria" <daviddoria at gmail.com> wrote:
o
>
>
>
>Is there an adaptor that will provide the magnitude of a pixel? (That is,
>simply return pixel.GetNorm() (assuming the pixels are either
>CovariantVector or VariableLengthVector)). If not, if I write one, would
>it be an acceptable addition to ITK?
>
>Thanks,
>
>David
>



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list