18 #ifndef itkShapePositionLabelMapFilter_h
19 #define itkShapePositionLabelMapFilter_h
37 template<
typename TImage>
60 TImage::ImageDimension);
69 #ifdef ITK_USE_CONCEPT_CHECKING
88 this->
SetAttribute( LabelObjectType::GetAttributeFromName( s ) );
98 template<
typename TAttributeAccessor >
101 typedef typename TAttributeAccessor::AttributeValueType AttributeValueType;
102 AttributeValueType position = accessor( labelObject );
107 typedef double CoordinateType;
118 this->
GetOutput()->TransformPhysicalPointToIndex( point, idx );
129 labelObject->Clear();
131 labelObject->AddIndex( idx );
140 void operator=(const
Self&) ITK_DELETE_FUNCTION;
146 #ifndef ITK_MANUAL_INSTANTIATION
147 #include "itkShapePositionLabelMapFilter.hxx"
void SetAttribute(const std::string &s)
SmartPointer< const Self > ConstPointer
Light weight base class for most itk classes.
~ShapePositionLabelMapFilter()
void TemplatedThreadedProcessLabelObject(const TAttributeAccessor &accessor, bool physical, LabelObjectType *labelObject)
signed long OffsetValueType
virtual void SetAttribute(AttributeType _arg)
signed long IndexValueType
ImageType::LabelObjectType LabelObjectType
void PrintSelf(std::ostream &os, Indent indent) const override
AttributeType m_Attribute
ImageType::PixelType PixelType
InPlaceLabelMapFilter< TImage > Superclass
static const unsigned int ImageDimension
ImageType::ConstPointer ImageConstPointer
ShapePositionLabelMapFilter()
ImageType::Pointer ImagePointer
Mark a single pixel in the label object which correspond to a position given by an attribute...
Base class for filters that takes an image as input and overwrites that image as the output...
virtual void ThreadedProcessLabelObject(LabelObjectType *labelObject) override
OutputImageType * GetOutput()
LabelObjectType::AttributeType AttributeType
Control indentation during Print() invocation.
ImageType::IndexType IndexType
ShapePositionLabelMapFilter Self
SmartPointer< Self > Pointer
A templated class holding a geometric point in n-Dimensional space.