18#ifndef itkMagnitudeAndPhaseToComplexImageFilter_h
19#define itkMagnitudeAndPhaseToComplexImageFilter_h
57template <
typename TInput1,
typename TInput2,
typename TOutput>
69 inline std::complex<TOutput>
72 return std::complex<TOutput>(std::polar(
static_cast<TOutput
>(A),
static_cast<TOutput
>(B)));
77template <
typename TInputImage1,
78 typename TInputImage2 = TInputImage1,
79 typename TOutputImage =
100 typename TInputImage2::PixelType,
101 typename TOutputImage::PixelType::value_type>;
109#ifdef ITK_USE_CONCEPT_CHECKING
120#if !defined(ITK_WRAPPING_PARSER)
Implements pixel-wise generic operation of two images, or of an image and a constant.
void SetFunctor(const std::function< ConstRefFunctionType > &f)
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(MagnitudeAndPhaseToComplex)
bool operator==(const MagnitudeAndPhaseToComplex &) const
std::complex< TOutput > operator()(const TInput1 &A, const TInput2 &B) const
Templated n-dimensional image class.
Light weight base class for most itk classes.
Implements pixel-wise conversion of magnitude and phase data into complex voxels.
Functor::MagnitudeAndPhaseToComplex< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType::value_type > FunctorType
typename TInputImage2::PixelType InputPixel2Type
MagnitudeAndPhaseToComplexImageFilter()
~MagnitudeAndPhaseToComplexImageFilter() override=default
typename TOutputImage::PixelType OutputPixelType
typename TInputImage1::PixelType InputPixel1Type
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....