18 #ifndef itkSpatialObjectToImageFilter_h
19 #define itkSpatialObjectToImageFilter_h
39 template<
typename TInputSpatialObject,
typename TOutputImage >
55 using ValueType =
typename OutputImageType::ValueType;
75 static constexpr
unsigned int ObjectDimension = InputSpatialObjectType::ObjectDimension;
77 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
80 using Superclass::SetInput;
93 virtual void SetSpacing(
const SpacingType & spacing);
95 virtual void SetSpacing(
const double *spacing);
97 virtual void SetSpacing(
const float *spacing);
99 virtual const double * GetSpacing()
const;
114 itkGetConstMacro(InsideValue,
ValueType);
124 itkGetConstMacro(OutsideValue,
ValueType);
131 virtual void SetOrigin(
const PointType & origin);
133 virtual void SetOrigin(
const double *origin);
135 virtual void SetOrigin(
const float *origin);
137 virtual const double * GetOrigin()
const;
143 itkSetMacro(ChildrenDepth,
unsigned int);
144 itkGetConstMacro(ChildrenDepth,
unsigned int);
154 itkSetMacro(UseObjectValue,
bool);
155 itkGetConstMacro(UseObjectValue,
bool);
163 void GenerateData()
override;
166 double m_Spacing[OutputImageDimension];
167 double m_Origin[OutputImageDimension];
177 void PrintSelf(std::ostream & os,
Indent indent)
const override;
184 #ifndef ITK_MANUAL_INSTANTIATION
185 #include "itkSpatialObjectToImageFilter.hxx"
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::DirectionType DirectionType
typename InputSpatialObjectType::ConstPointer InputSpatialObjectConstPointer
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.
DirectionType m_Direction
ImageBaseType::SizeType SizeType
ImageBaseType::DirectionType DirectionType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
Represent a n-dimensional size (bounds) of a n-dimensional image.
TInputSpatialObject InputSpatialObjectType
typename InputSpatialObjectType::Pointer InputSpatialObjectPointer
unsigned int m_ChildrenDepth
typename OutputImageType::SpacingType SpacingType
typename TInputSpatialObject::ChildrenListType ChildrenListType
typename OutputImageType::ValueType ValueType
typename OutputImageType::PointType PointType
void GenerateOutputInformation() override
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
typename OutputImageType::SizeType SizeType
Base class for filters that take a SpatialObject as input and produce an image as output...