18 #ifndef itkBinaryMagnitudeImageFilter_h
19 #define itkBinaryMagnitudeImageFilter_h
32 template<
typename TInput1,
typename TInput2,
typename TOutput >
46 return !( *
this != other );
50 const TInput2 & B)
const
52 const double dA =
static_cast< double >( A );
53 const double dB =
static_cast< double >( B );
55 return static_cast< TOutput
>( std::sqrt(dA * dA + dB * dB) );
84 template<
typename TInputImage1,
typename TInputImage2,
typename TOutputImage >
89 typename TInputImage1::PixelType,
90 typename TInputImage2::PixelType,
91 typename TOutputImage::PixelType > >
98 typename TInputImage1::PixelType,
99 typename TInputImage2::PixelType,
100 typename TOutputImage::PixelType >
112 #ifdef ITK_USE_CONCEPT_CHECKING
void operator=(const Self &)
SmartPointer< const Self > ConstPointer
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Base class for all process objects that output image data.
BinaryMagnitudeImageFilter Self
bool operator==(const Modulus2 &other) const
Computes the square root of the sum of squares of corresponding input pixels.
BinaryMagnitudeImageFilter()
virtual ~BinaryMagnitudeImageFilter()
SmartPointer< Self > Pointer
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::Modulus2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
#define itkConceptMacro(name, concept)
Implements pixel-wise generic operation of two images, or of an image and a constant.
bool operator!=(const Modulus2 &) const