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>
87#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
Implements transparent reference counting.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
Functor::Square< typename TInputImage::PixelType, typename TOutputImage::PixelType > FunctorType
~SquareImageFilter() override=default
UnaryGeneratorImageFilter< TInputImage, TOutputImage > Superclass
UnaryGeneratorImageFilter()
void SetFunctor(const std::function< ConstRefFunctionType > &f)
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....