18 #ifndef __itkCompose2DVectorImageFilter_h
19 #define __itkCompose2DVectorImageFilter_h
20 #if !defined( ITK_LEGACY_REMOVE )
29 template<
class TInput >
33 typedef Vector< TInput, 2 > OutputType;
41 bool operator==(
const Compose2DVector & other)
const
43 return !( *
this != other );
46 inline OutputType operator()(
const TInput & s1,
47 const TInput & s2)
const
70 template<
typename TInputImage,
71 typename TOutputImage =
72 Image< Vector< typename TInputImage::PixelType, 2 >,
73 TInputImage::ImageDimension > >
74 class ITK_EXPORT Compose2DVectorImageFilter:
76 BinaryFunctorImageFilter< TInputImage, TInputImage,
78 Functor::Compose2DVector< typename TInputImage::PixelType > >
82 typedef Compose2DVectorImageFilter Self;
83 typedef BinaryFunctorImageFilter<
84 TInputImage, TInputImage,
86 Functor::Compose2DVector<
87 typename TInputImage::PixelType > > Superclass;
89 typedef SmartPointer< Self > Pointer;
90 typedef SmartPointer< const Self > ConstPointer;
92 typedef typename Superclass::OutputImageType OutputImageType;
98 itkTypeMacro(Compose2DVectorImageFilter,
99 BinaryFunctorImageFilter);
101 #ifdef ITK_USE_CONCEPT_CHECKING
104 ( Concept::HasNumericTraits< typename TInputImage::PixelType > ) );
110 Compose2DVectorImageFilter() {}
111 virtual ~Compose2DVectorImageFilter() {}
114 Compose2DVectorImageFilter(
const Self &);
115 void operator=(
const Self &);
119 #endif //#if !defined( ITK_LEGACY_REMOVE )