18 #ifndef itkAnchorOpenCloseLine_h 19 #define itkAnchorOpenCloseLine_h 35 template<
typename TInputPix,
typename TCompare >
52 void DoLine(std::vector<InputImagePixelType> & buffer,
unsigned bufflength);
64 bool StartLine(std::vector<InputImagePixelType> & buffer,
65 InputImagePixelType & Extreme,
67 unsigned & outRightP);
69 void FinishLine(std::vector<InputImagePixelType> & buffer,
70 InputImagePixelType & Extreme,
72 unsigned & outRightP);
74 inline bool Compare1(
const InputImagePixelType & a,
const InputImagePixelType & b )
77 return ! compare( a, b );
80 inline bool Compare2(
const InputImagePixelType & a,
const InputImagePixelType & b )
83 return compare( a, b ) || a == b;
89 #ifndef ITK_MANUAL_INSTANTIATION 90 #include "itkAnchorOpenCloseLine.hxx" TInputPix InputImagePixelType
Function::MorphologyHistogram< InputImagePixelType, TCompare > HistogramType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
void DoLine(std::vector< InputImagePixelType > &buffer, unsigned bufflength)
bool Compare2(const InputImagePixelType &a, const InputImagePixelType &b)
void SetSize(unsigned int size)
class to implement openings and closings using anchor methods. This is the base class that must be in...
Control indentation during Print() invocation.
bool StartLine(std::vector< InputImagePixelType > &buffer, InputImagePixelType &Extreme, unsigned &outLeftP, unsigned &outRightP)
void FinishLine(std::vector< InputImagePixelType > &buffer, InputImagePixelType &Extreme, unsigned &outLeftP, unsigned &outRightP)
void PrintSelf(std::ostream &os, Indent indent) const
bool Compare1(const InputImagePixelType &a, const InputImagePixelType &b)