18 #ifndef itkPowImageFilter_h
19 #define itkPowImageFilter_h
33 template<
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1 >
48 return !( *
this != other );
51 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
55 return static_cast< TOutput
>( std::pow(static_cast<RealType>(A),static_cast<RealType>(B)) );
91 template<
typename TInputImage1,
typename TInputImage2 = TInputImage1,
typename TOutputImage = TInputImage1 >
96 typename TInputImage1::PixelType,
97 typename TInputImage2::PixelType,
98 typename TOutputImage::PixelType > >
106 typename TInputImage1::PixelType,
107 typename TInputImage2::PixelType,
120 #ifdef ITK_USE_CONCEPT_CHECKING
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::Pow< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
TOutput operator()(const TInput1 &A, const TInput2 &B) const
SmartPointer< const Self > ConstPointer
Base class for all process objects that output image data.
void operator=(const Self &)
Computes the powers of 2 images.
SmartPointer< Self > Pointer
Define additional traits for native types such as int or float.
bool operator==(const Pow &other) const
Implements pixel-wise generic operation of two images, or of an image and a constant.
bool operator!=(const Pow &) const