17 #ifndef __itkPolarToCartesianVectorImageFilter_h
18 #define __itkPolarToCartesianVectorImageFilter_h
20 #include "itkUnaryFunctorImageFilter.h"
22 #define _USE_MATH_DEFINES
32 template<
typename TInput,
typename TOutput,
bool symmetric >
44 return !(*
this != other);
50 opoint[0] = x[0] * cos( x[1] ) * sin( x[2] );
51 opoint[1] = x[0] * sin( x[1] ) * sin( x[2] );
52 opoint[2] = x[0] * cos( x[2] );
54 if(symmetric && opoint[2]<0)
56 opoint[2] = -opoint[2];
70 template <
typename TInputImage,
typename TOutputImage,
bool symmetric>
73 UnaryFunctorImageFilter<TInputImage,TOutputImage,
74 Functor::PolarToCartesianFunction<
75 typename TInputImage::PixelType,
76 typename TOutputImage::PixelType, symmetric> >
81 typedef UnaryFunctorImageFilter<
82 TInputImage,TOutputImage,
98 itkFactorylessNewMacro(Self)
103 { this->Superclass::PrintSelf( os, indent ); }
105 #ifdef ITK_USE_CONCEPT_CHECKING
107 itkConceptMacro(InputHasNumericTraitsCheck,
108 (Concept::HasNumericTraits<InputValueType>));
118 void operator=(
const Self&);
126 #endif // __itkPolarToCartesianVectorImageFilter_h
Superclass::OutputImageType OutputImageType
bool operator!=(const PolarToCartesianFunction &) const
bool operator==(const PolarToCartesianFunction &other) const
TOutput operator()(const TInput &x)
PolarToCartesianFunction()
void PrintSelf(std::ostream &os, Indent indent) const
ValueType
Type of the value held by a Value object.
PolarToCartesianVectorImageFilter()
SmartPointer< Self > Pointer
InputPixelType::ValueType InputValueType
OutputImageType::PixelType OutputPixelType
TInputImage::PixelType InputPixelType
SmartPointer< const Self > ConstPointer
PolarToCartesianVectorImageFilter Self
virtual ~PolarToCartesianVectorImageFilter()
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::PolarToCartesianFunction< typename TInputImage::PixelType, typename TOutputImage::PixelType, symmetric > > Superclass
~PolarToCartesianFunction()