18 #ifndef itkSpatialObjectToImageFilter_h
19 #define itkSpatialObjectToImageFilter_h
39 template<
typename TInputSpatialObject,
typename TOutputImage >
53 typedef typename OutputImageType::ValueType
ValueType;
73 itkStaticConstMacro(ObjectDimension,
unsigned int,
74 InputSpatialObjectType::ObjectDimension);
76 itkStaticConstMacro(OutputImageDimension,
unsigned int,
77 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);
162 virtual
void GenerateOutputInformation() ITK_OVERRIDE {}
163 virtual void GenerateData() ITK_OVERRIDE;
166 double m_Spacing[OutputImageDimension];
167 double m_Origin[OutputImageDimension];
170 unsigned int m_ChildrenDepth;
175 bool m_UseObjectValue;
177 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
185 #ifndef ITK_MANUAL_INSTANTIATION
186 #include "itkSpatialObjectToImageFilter.hxx"
ImageSource< TOutputImage > Superclass
Represent the size (bounds) of a n-dimensional image.
OutputImageType::ValueType ValueType
OutputImageType::SpacingType SpacingType
InputSpatialObjectType::Pointer InputSpatialObjectPointer
TInputSpatialObject InputSpatialObjectType
Base class for all process objects that output image data.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::DirectionType DirectionType
Superclass::OutputImageRegionType OutputImageRegionType
OutputImageType::DirectionType DirectionType
ImageBaseType::PointType PointType
OutputImageType::PointType PointType
TOutputImage OutputImageType
InputSpatialObjectType::ConstPointer InputSpatialObjectConstPointer
TInputSpatialObject::ChildrenListType ChildrenListType
Control indentation during Print() invocation.
ImageBaseType::SizeType SizeType
OutputImageType::Pointer OutputImagePointer
SpatialObjectToImageFilter Self
OutputImageType::SizeType SizeType
Base class for filters that take a SpatialObject as input and produce an image as output...