18 #ifndef itkPathToImageFilter_h
19 #define itkPathToImageFilter_h
35 template<
typename TInputPath,
typename TOutputImage >
61 using ValueType =
typename OutputImageType::ValueType;
64 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
67 using Superclass::SetInput;
70 virtual void SetInput(
unsigned int,
const TInputPath *path);
80 virtual void SetSpacing(
const double *spacing);
82 virtual void SetSpacing(
const float *spacing);
84 virtual const double * GetSpacing()
const;
91 itkGetConstMacro(BackgroundValue,
ValueType);
98 virtual void SetOrigin(
const double *origin);
100 virtual void SetOrigin(
const float *origin);
102 virtual const double * GetOrigin()
const;
114 void GenerateData()
override;
117 double m_Spacing[OutputImageDimension];
118 double m_Origin[OutputImageDimension];
122 void PrintSelf(std::ostream & os,
Indent indent)
const override;
126 #ifndef ITK_MANUAL_INSTANTIATION
127 #include "itkPathToImageFilter.hxx"
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::ValueType ValueType
ValueType m_BackgroundValue
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
Base class for filters that take a Path as input and produce an image as output. Base class for filte...
typename OutputImageType::SizeType SizeType
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
Represent a n-dimensional size (bounds) of a n-dimensional image.
typename InputPathType::ConstPointer InputPathConstPointer
Control indentation during Print() invocation.
void GenerateOutputInformation() override
typename InputPathType::Pointer InputPathPointer