18 #ifndef __itkConnectedComponentImageFilter_h
19 #define __itkConnectedComponentImageFilter_h
56 template<
typename TInputImage,
typename TOutputImage,
typename TMaskImage = TInputImage >
82 TOutputImage::ImageDimension);
84 TOutputImage::ImageDimension);
86 TInputImage::ImageDimension);
95 typedef typename TInputImage::SizeType
SizeType;
130 itkSetMacro(FullyConnected,
bool);
131 itkGetConstReferenceMacro(FullyConnected,
bool);
132 itkBooleanMacro(FullyConnected);
139 itkGetConstReferenceMacro(ObjectCount,
LabelType);
149 this->
SetNthInput( 1, const_cast< TMaskImage * >( mask ) );
215 typename TInputImage::IndexType
where;
224 typedef std::vector< typename TInputImage::OffsetValueType >
OffsetVec;
271 #if !defined( CABLE_CONFIGURATION )
277 #ifndef ITK_MANUAL_INSTANTIATION
278 #if !defined( CABLE_CONFIGURATION )
279 #include "itkConnectedComponentImageFilter.hxx"
std::vector< runLength > lineEncoding
void ThreadedGenerateData(const RegionType &outputRegionForThread, ThreadIdType threadId)
TOutputImage OutputImageType
void LinkLabels(const LabelType lab1, const LabelType lab2)
void InsertSet(const LabelType label)
signed long OffsetValueType
std::vector< typename TInputImage::OffsetValueType > OffsetVec
TInputImage::ConstPointer m_Input
InputImageType::Pointer InputImagePointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
TInputImage InputImageType
MaskImageType::Pointer MaskImagePointer
TInputImage::PixelType InputPixelType
static const unsigned int ImageDimension
UnionFindType m_UnionFind
TInputImage::OffsetType OffsetType
TMaskImage::PixelType MaskPixelType
void SetMaskImage(TMaskImage *mask)
TOutputImage::RegionType::SizeType OutSizeType
TInputImage::InternalPixelType InputInternalPixelType
Base class for all process objects that output image data.
std::list< IndexType > ListType
TInputImage::OffsetValueType length
Superclass::InputImagePointer InputImagePointer
unsigned long SizeValueType
TOutputImage::PixelType OutputImagePixelType
std::vector< lineEncoding > LineMapType
void PrintSelf(std::ostream &os, Indent indent) const
std::vector< LabelType > UnionFindType
void FillOutput(const LineMapType &LineMap, ProgressReporter &progress)
TOutputImage::OffsetType OutputOffsetType
void BeforeThreadedGenerateData()
SizeValueType IdentifierType
SmartPointer< Self > Pointer
void EnlargeOutputRequestedRegion(DataObject *)
void GenerateInputRequestedRegion()
TOutputImage::IndexType OutputIndexType
static const unsigned int InputImageDimension
SmartPointer< const Self > ConstPointer
TOutputImage::InternalPixelType OutputInternalPixelType
bool CheckNeighbors(const OutputIndexType &A, const OutputIndexType &B)
void InitUnion(SizeValueType size)
TOutputImage::SizeType OutputSizeType
const TMaskImage * GetMaskImage() const
TInputImage::IndexType where
OutputImageType::PixelType OutputImagePixelType
void SetupLineOffsets(OffsetVec &LineOffsets)
SizeValueType LookupSet(const LabelType label)
Implements progress tracking for a filter.
DataObject * GetInput(const DataObjectIdentifierType &key)
ConnectedComponentImageFilter()
OutputImagePixelType m_BackgroundValue
TInputImage::SizeType SizeType
virtual ~ConnectedComponentImageFilter()
Base class for filters that take an image as input and produce an image as output.
SizeValueType CreateConsecutive()
TInputImage::IndexType IndexType
Barrier::Pointer m_Barrier
Control indentation during Print() invocation.
std::vector< IdentifierType > m_NumberOfLabels
UnionFindType m_Consecutive
Define additional traits for native types such as int or float.
virtual void SetNthInput(DataObjectPointerArraySizeType num, DataObject *input)
#define itkConceptMacro(name, concept)
void operator=(const Self &)
void AfterThreadedGenerateData()
Base class for all data objects in ITK.
ConnectedComponentImageFilter Self
static const unsigned int OutputImageDimension
TOutputImage::RegionType RegionType
TOutputImage::PixelType OutputPixelType
std::vector< IdentifierType > m_FirstLineIdToJoin
void CompareLines(lineEncoding ¤t, const lineEncoding &Neighbour)
unsigned int ThreadIdType
Label the objects in a binary image.