18 #ifndef itkShapeLabelMapFilter_h
19 #define itkShapeLabelMapFilter_h
52 template<
typename TImage,
typename TLabelImage =
53 Image< typename TImage::PixelType, TImage ::ImageDimension > >
86 static constexpr
unsigned int ImageDimension = TImage::ImageDimension;
94 #ifdef ITK_USE_CONCEPT_CHECKING
109 itkSetMacro(ComputeFeretDiameter,
bool);
110 itkGetConstReferenceMacro(ComputeFeretDiameter,
bool);
111 itkBooleanMacro(ComputeFeretDiameter);
118 itkSetMacro(ComputePerimeter,
bool);
119 itkGetConstReferenceMacro(ComputePerimeter,
bool);
120 itkBooleanMacro(ComputePerimeter);
128 itkSetMacro(ComputeOrientedBoundingBox,
bool);
129 itkGetConstReferenceMacro(ComputeOrientedBoundingBox,
bool);
130 itkBooleanMacro(ComputeOrientedBoundingBox);
136 m_LabelImage = input;
143 void ThreadedProcessLabelObject(LabelObjectType *labelObject)
override;
145 void BeforeThreadedGenerateData()
override;
147 void AfterThreadedGenerateData()
override;
149 void PrintSelf(std::ostream & os,
Indent indent)
const override;
170 template<
typename TMapIntercept,
typename TSpacing>
double PerimeterFromInterceptCount( TMapIntercept & intercepts,
const TSpacing & spacing );
171 #if ! defined(ITK_DO_NOT_USE_PERIMETER_SPECIALIZATION)
180 #ifndef ITK_MANUAL_INSTANTIATION
181 #include "itkShapeLabelMapFilter.hxx"
void SetLabelImage(const TLabelImage *input)
typename LabelImageType::Pointer LabelImagePointer
Light weight base class for most itk classes.
typename ImageType::SizeType SizeType
std::map< Offset3Type, SizeValueType, Functor::LexicographicCompare > MapIntercept3Type
typename LabelImageType::ConstPointer LabelImageConstPointer
typename InputImageType::IndexType IndexType
typename ImageType::OffsetType OffsetType
typename LabelObjectType::VectorType VectorType
typename ImageType::Pointer ImagePointer
A templated class holding a n-Dimensional vector.
ImageBaseType::SizeType SizeType
typename LabelObjectType::MatrixType MatrixType
ImageBaseType::IndexType IndexType
Base class for filters that takes an image as input and overwrites that image as the output...
typename InputImageType::PixelType PixelType
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image...
std::map< Offset2Type, SizeValueType, Functor::LexicographicCompare > MapIntercept2Type
typename ImageType::ConstPointer ImageConstPointer
Control indentation during Print() invocation.
typename InputImageType::LabelObjectType LabelObjectType
bool m_ComputeOrientedBoundingBox
bool m_ComputeFeretDiameter
typename LabelImageType::PixelType LabelPixelType
ImageBaseType::RegionType RegionType
ImageBaseType::SpacingType VectorType
The valuator class for the ShapeLabelObject.
typename InputImageType::RegionType RegionType
Templated n-dimensional image class.
LabelImageConstPointer m_LabelImage