18 #ifndef itkSquareImageFilter_h
19 #define itkSquareImageFilter_h
38 template<
typename TInput,
typename TOutput >
52 return !( *
this != other );
57 const auto ra =
static_cast< RealType >( A );
59 return static_cast< TOutput
>( ra * ra );
63 template<
typename TInputImage,
typename TOutputImage >
77 typename TOutputImage::PixelType >;
86 #ifdef ITK_USE_CONCEPT_CHECKING
98 #if !defined( ITK_WRAPPING_PARSER )
Define numeric traits for std::vector.
Functor::Square< typename TInputImage::PixelType, typename TOutputImage::PixelType > FunctorType
bool operator==(const Square &other) const
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
void SetFunctor(const std::function< ConstRefFunctionType > &f)
typename NumericTraits< TInput >::RealType RealType
~SquareImageFilter() override=default
Computes the square of the intensity values pixel-wise.
TOutput operator()(const TInput &A) const
bool operator!=(const Square &) const
#define itkConceptMacro(name, concept)
Implements pixel-wise generic "operation" on one image.