18 #ifndef itkBinaryContourImageFilter_h 19 #define itkBinaryContourImageFilter_h 53 template<
typename TInputImage,
typename TOutputImage >
82 typedef typename InputImageType::IndexType
IndexType;
83 typedef typename InputImageType::SizeType
SizeType;
98 OutputImageType::ImageDimension);
100 #ifdef ITK_USE_CONCEPT_CHECKING 102 InputImageType::ImageDimension);
116 itkSetMacro(FullyConnected,
bool);
117 itkGetConstReferenceMacro(FullyConnected,
bool);
118 itkBooleanMacro(FullyConnected);
125 itkSetMacro(BackgroundValue, OutputImagePixelType);
126 itkGetConstMacro(BackgroundValue, OutputImagePixelType);
133 itkSetMacro(ForegroundValue, InputImagePixelType);
134 itkGetConstMacro(ForegroundValue, InputImagePixelType);
192 const OutputIndexType & B);
195 const LineEncodingType & Neighbour);
213 #ifndef ITK_MANUAL_INSTANTIATION 214 #include "itkBinaryContourImageFilter.hxx" void CompareLines(LineEncodingType ¤t, const LineEncodingType &Neighbour)
InputImageType::ConstPointer InputImageConstPointer
SmartPointer< Self > Pointer
OutputImageType::SizeType OutputSizeType
InputImageType::OffsetType OffsetType
signed long OffsetValueType
OutputImageType::InternalPixelType OutputInternalPixelType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
OutputImageType::IndexType OutputIndexType
OutputImagePixelType m_BackgroundValue
void GenerateInputRequestedRegion() override
void operator=(const Self &)
TInputImage InputImageType
void SetupLineOffsets(OffsetVec &LineOffsets)
InputImageType::InternalPixelType InputInternalPixelType
InputImagePixelType m_ForegroundValue
virtual ~BinaryContourImageFilter()
void EnlargeOutputRequestedRegion(DataObject *) override
bool CheckNeighbors(const OutputIndexType &A, const OutputIndexType &B)
LineEncodingType::iterator LineEncodingIterator
OutputImageType::RegionType RegionType
TOutputImage OutputImageType
ThreadIdType m_NumberOfThreads
InPlaceImageFilter< TInputImage, TOutputImage > Superclass
unsigned int ThreadIdType
runLength(const OffsetValueType &iLength, const IndexType &iWhere)
void PrintSelf(std::ostream &os, Indent indent) const override
void BeforeThreadedGenerateData() override
static const unsigned int InputImageDimension
InputImageType::Pointer InputImagePointer
void AfterThreadedGenerateData() override
OutputImageType::Pointer OutputImagePointer
InputImageType::PixelType InputImagePixelType
static const unsigned int OutputImageDimension
BinaryContourImageFilter Self
LineMapType m_ForegroundLineMap
LineMapType m_BackgroundLineMap
std::vector< OffsetValueType > OffsetVec
Base class for filters that take an image as input and produce an image as output.
std::vector< LineEncodingType > LineMapType
Control indentation during Print() invocation.
InputImageType::SizeType SizeType
Barrier::Pointer m_Barrier
Labels the pixels on the border of the objects in a binary image.
std::vector< runLength > LineEncodingType
void ThreadedGenerateData(const RegionType &outputRegionForThread, ThreadIdType threadId) override
Base class for filters that take an image as input and overwrite that image as the output...
#define itkConceptMacro(name, concept)
static const unsigned int ImageDimension
InputImageType::IndexType IndexType
LineEncodingType::const_iterator LineEncodingConstIterator
Base class for all data objects in ITK.
SmartPointer< const Self > ConstPointer
OutputImageType::PixelType OutputImagePixelType
OutputImageType::OffsetType OutputOffsetType
BinaryContourImageFilter()