18#ifndef itkSquareImageFilter_h
19#define itkSquareImageFilter_h
39template <
typename TInput,
typename TOutput>
55 const auto ra =
static_cast<RealType>(A);
57 return static_cast<TOutput
>(ra * ra);
61template <
typename TInputImage,
typename TOutputImage>
80#ifdef ITK_USE_CONCEPT_CHECKING
91#if !defined(ITK_WRAPPING_PARSER)
bool operator==(const Square &) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Square)
TOutput operator()(const TInput &A) const
typename NumericTraits< TInput >::RealType RealType
Base class for all process objects that output image data.
Define additional traits for native types such as int or float.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Computes the square of the intensity values pixel-wise.
~SquareImageFilter() override=default
Implements pixel-wise generic "operation" on one image.
Functor::Add2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....