18 #ifndef __itkBinaryImageToLabelMapFilter_h
19 #define __itkBinaryImageToLabelMapFilter_h
58 template<
class TInputImage,
60 LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< TInputImage >::ImageDimension > > >
96 itkStaticConstMacro(ImageDimension,
unsigned int, TOutputImage::ImageDimension);
97 itkStaticConstMacro(OutputImageDimension,
unsigned int, TOutputImage::ImageDimension);
98 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
126 itkSetMacro(FullyConnected,
bool);
127 itkGetConstReferenceMacro(FullyConnected,
bool);
128 itkBooleanMacro(FullyConnected);
150 #ifdef ITK_USE_CONCEPT_CHECKING
154 itkGetStaticConstMacro(OutputImageDimension) > ) );
159 void PrintSelf(std::ostream & os,
Indent indent)
const;
164 void BeforeThreadedGenerateData();
166 void AfterThreadedGenerateData();
168 void ThreadedGenerateData(
const RegionType & outputRegionForThread,
ThreadIdType threadId);
173 void GenerateInputRequestedRegion();
179 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) );
182 void operator=(
const Self &);
194 typename InputImageType::IndexType
where;
215 void InsertSet(
const LabelType label);
217 LabelType LookupSet(
const LabelType label);
219 void LinkLabels(
const LabelType lab1,
const LabelType lab2);
221 LabelType CreateConsecutive();
224 bool CheckNeighbors(
const OutputIndexType & A,
225 const OutputIndexType & B);
227 void CompareLines(lineEncoding & current,
const lineEncoding & Neighbour);
229 void FillOutput(
const LineMapType & LineMap,
232 void SetupLineOffsets(OffsetVectorType & LineOffsets);
237 if ( m_NumberOfLabels.size() > 1 )
255 #if !defined( CABLE_CONFIGURATION )
261 #ifndef ITK_MANUAL_INSTANTIATION
262 #if !defined( CABLE_CONFIGURATION )
263 #include "itkBinaryImageToLabelMapFilter.hxx"