[Insight-users] Calling operator of Filter

Arvind Rao arvind.sbia at gmail.com
Tue Mar 13 12:53:53 EDT 2012


Hi All,

I created a Binary Image Filter. And now I want, for experimentation
purposes, to compute values for a few pixels, not a whole image.
Because my filter includes a class which computes pixel-wise values, I want
to use the operator() method. Its declaration looks something like this:

          inline TOutput operator() ( const RshPixelType & A, const
PeaksPixelType & B )

My attempt to call the operator:

      typedef itk::Functor::FilterName< RshPixelType, PeakPixelType,
OutputPixelType >    CalcType;
      CalcType gcCalc;

      gcCalc.operator(a_direction, An_RSH_PIXEL );

What am I doing wrong? Am I not instantiating the class properly? Or
calling the operator() method improperly?

Thanks for any advice or suggestions you can provide.

Best,
Arvind
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120313/b7a9f63f/attachment.htm>


More information about the Insight-users mailing list