21 #ifndef otbImageToVectorImageCastFilter_h
22 #define otbImageToVectorImageCastFilter_h
24 #include "itkUnaryFunctorImageFilter.h"
25 #include "itkVariableLengthVector.h"
40 template <
class TInput,
class TOutput>
59 return (*
this != other);
78 template <
class TInputImage,
class TOutputVectorImage>
80 :
public itk::UnaryFunctorImageFilter<TInputImage, TOutputVectorImage,
81 Functor::VectorCast<typename TInputImage::PixelType, typename TOutputVectorImage::PixelType>>
86 typedef itk::UnaryFunctorImageFilter<TInputImage, TOutputVectorImage,
110 Superclass::GenerateOutputInformation();
111 this->GetOutput()->SetNumberOfComponentsPerPixel(1);
116 if (this->GetInput())
118 typename TInputImage::Pointer input =
const_cast<TInputImage*
>(this->GetInput());
119 typename TInputImage::RegionType inputRegion;
120 this->CallCopyOutputRegionToInputRegion(inputRegion, this->GetOutput()->GetRequestedRegion());
121 input->SetRequestedRegion(inputRegion);
127 void operator=(
const Self&) =
delete;