23 #ifndef otbImportVectorImageFilter_h
24 #define otbImportVectorImageFilter_h
26 #include "itkImageSource.h"
44 template <
typename TOutputImageType>
67 typedef itk::Index<OutputImageType::ImageDimension>
IndexType;
70 typedef itk::Size<OutputImageType::ImageDimension>
SizeType;
74 typedef itk::ImageRegion<OutputImageType::ImageDimension>
RegionType;
78 typedef typename TOutputPixel::ValueType
TPixel;
81 TPixel* GetImportPointer();
90 virtual void SetImportPointer(
TPixel* ptr,
unsigned long num,
bool LetFilterManageMemory);
98 if (m_Region != region)
117 itkSetVectorMacro(Spacing,
const double, OutputImageType::ImageDimension);
118 itkSetVectorMacro(Spacing,
const float, OutputImageType::ImageDimension);
123 itkGetVectorMacro(Spacing,
const double, OutputImageType::ImageDimension);
124 void SetSpacing(
const SpacingType& spacing);
129 itkSetVectorMacro(Origin,
const double, OutputImageType::ImageDimension);
130 itkSetVectorMacro(Origin,
const float, OutputImageType::ImageDimension);
131 void SetOrigin(
const OriginType& origin);
134 itkGetMacro(NumberOfComponents,
unsigned int);
135 itkSetMacro(NumberOfComponents,
unsigned int);
139 itkGetVectorMacro(Origin,
const double, OutputImageType::ImageDimension);
141 typedef itk::Matrix<double, OutputImageType::ImageDimension, OutputImageType::ImageDimension>
DirectionType;
154 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
158 void GenerateData()
override;
163 void GenerateOutputInformation()
override;
172 void EnlargeOutputRequestedRegion(itk::DataObject* output)
override;
179 double m_Spacing[OutputImageType::ImageDimension];
180 double m_Origin[OutputImageType::ImageDimension];
191 #ifndef OTB_MANUAL_INSTANTIATION