18#ifndef itkSpatialObjectToImageFilter_h
19#define itkSpatialObjectToImageFilter_h
40template <
typename TInputSpatialObject,
typename TOutputImage>
53 using IndexType =
typename OutputImageType::IndexType;
54 using SizeType =
typename OutputImageType::SizeType;
55 using PointType =
typename OutputImageType::PointType;
57 using ValueType =
typename OutputImageType::ValueType;
77 static constexpr unsigned int ObjectDimension = InputSpatialObjectType::ObjectDimension;
97 template <
class TReferenceImage>
104 this->
SetIndex(refImage->GetLargestPossibleRegion().GetIndex());
105 this->
SetSize(refImage->GetLargestPossibleRegion().GetSize());
122 virtual const double *
169 virtual const double *
186 itkSetMacro(ChildrenDepth,
unsigned int);
187 itkGetConstMacro(ChildrenDepth,
unsigned int);
197 itkSetMacro(UseObjectValue,
bool);
198 itkGetConstMacro(UseObjectValue,
bool);
199 itkBooleanMacro(UseObjectValue);
235#ifndef ITK_MANUAL_INSTANTIATION
236# include "itkSpatialObjectToImageFilter.hxx"
typename OutputImageType::RegionType OutputImageRegionType
Control indentation during Print() invocation.
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implements transparent reference counting.
TOutputImage OutputImageType
void GenerateOutputInformation() override
virtual void SetSize(SizeType _arg)
SpatialObjectToImageFilter Self
virtual void SetIndex(IndexType _arg)
virtual void SetOrigin(const PointType &origin)
typename OutputImageType::DirectionType DirectionType
virtual const PointType & GetOriginPoint() const
void SetReferenceImage(TReferenceImage *refImage)
double m_Origin[OutputImageDimension]
DirectionType m_Direction
virtual const double * GetSpacing() const
virtual void SetOrigin(const float *origin)
virtual const SpacingType & GetSpacingVector() const
static constexpr unsigned int ObjectDimension
TInputSpatialObject InputSpatialObjectType
typename OutputImageType::IndexType IndexType
virtual const double * GetOrigin() const
typename TInputSpatialObject::ChildrenListType ChildrenListType
virtual void SetSpacing(const SpacingType &spacing)
unsigned int m_ChildrenDepth
virtual void SetOrigin(const double *origin)
virtual void SetInput(unsigned int, const InputSpatialObjectType *object)
~SpatialObjectToImageFilter() override=default
const InputSpatialObjectType * GetInput()
SmartPointer< const Self > ConstPointer
SpacingType m_SpacingVector
virtual void SetInput(const InputSpatialObjectType *input)
static constexpr unsigned int OutputImageDimension
double m_Spacing[OutputImageDimension]
SpatialObjectToImageFilter()
void PrintSelf(std::ostream &os, Indent indent) const override
virtual const DirectionType & GetDirection() const
ImageSource< TOutputImage > Superclass
typename OutputImageType::PointType PointType
virtual void SetSpacing(const double *spacing)
typename OutputImageType::SpacingType SpacingType
typename OutputImageType::ValueType ValueType
void GenerateData() override
virtual void SetSpacing(const float *spacing)
typename InputSpatialObjectType::ConstPointer InputSpatialObjectConstPointer
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::SizeType SizeType
typename InputSpatialObjectType::Pointer InputSpatialObjectPointer
const InputSpatialObjectType * GetInput(unsigned int idx)
virtual void SetDirection(const DirectionType &dir)
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Represent a n-dimensional index in a n-dimensional image.
Represent a n-dimensional size (bounds) of a n-dimensional image.