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 );
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 PrintSelf(std::ostream &os, Indent indent) const
void TemplatedThreadedProcessLabelObject(const TAttributeAccessor &accessor, bool physical, LabelObjectType *labelObject)
signed long OffsetValueType
virtual void SetAttribute(AttributeType _arg)
signed long IndexValueType
ImageType::LabelObjectType LabelObjectType
AttributeType m_Attribute
ImageType::PixelType PixelType
InPlaceLabelMapFilter< TImage > Superclass
OutputImageType * GetOutput(void)
static const unsigned int ImageDimension
ImageType::ConstPointer ImageConstPointer
ShapePositionLabelMapFilter()
ImageType::Pointer ImagePointer
virtual void ThreadedProcessLabelObject(LabelObjectType *labelObject)
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...
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.
void operator=(const Self &)