18#ifndef itkPowImageFilter_h
19#define itkPowImageFilter_h
33template <
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1>
53 return static_cast<TOutput
>(std::pow(
static_cast<RealType1
>(A),
static_cast<RealType2
>(B)));
92template <
typename TInputImage1,
typename TInputImage2 = TInputImage1,
typename TOutputImage = TInputImage1>
93class ITK_TEMPLATE_EXPORT
PowImageFilter :
public BinaryGeneratorImageFilter<TInputImage1, TInputImage2, TOutputImage>
102 using Superclass = BinaryGeneratorImageFilter<TInputImage1, TInputImage2, TOutputImage>;
107 Functor::Pow<typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType>;
115#ifdef ITK_USE_CONCEPT_CHECKING
123#if !defined(ITK_WRAPPING_PARSER)
Pixel-wise addition of two images.
Computes the powers of 2 images.
bool operator==(const Pow &) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Pow)
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Define additional traits for native types such as int or float.
Functor::Add2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
SmartPointer< const Self > ConstPointer
BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage > Superclass
SmartPointer< Self > Pointer
Functor::Pow< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
~PowImageFilter() override=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....