ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
itk::AnchorErodeDilateLine< TInputPix, TCompare > Class Template Reference

#include <itkAnchorErodeDilateLine.h>

Detailed Description

template<typename TInputPix, typename TCompare>
class itk::AnchorErodeDilateLine< TInputPix, TCompare >

class to implement erosions and dilations using anchor methods. This is the base class that must be instantiated with appropriate definitions of greater, less and so on. There is special code for cases where the structuring element is bigger than the image size that aren't particularly anchor related, but use the same data structures. Hopefully these sections occupy a very minor proportion of the time.

Definition at line 37 of file itkAnchorErodeDilateLine.h.

Public Types

using InputImagePixelType = TInputPix
 

Public Member Functions

 AnchorErodeDilateLine ()
 
void DoLine (std::vector< TInputPix > &buffer, std::vector< TInputPix > &inbuffer, unsigned bufflength)
 
void PrintSelf (std::ostream &os, Indent indent) const
 
void SetSize (unsigned int size)
 
 ~AnchorErodeDilateLine ()=default
 

Private Types

using HistogramType = Function::MorphologyHistogram< InputImagePixelType, TCompare >
 

Private Member Functions

bool Compare (const InputImagePixelType &a, const InputImagePixelType &b)
 
void FinishLine (std::vector< TInputPix > &buffer, std::vector< TInputPix > &inbuffer, InputImagePixelType &Extreme, int &outLeftP, int &outRightP, int &inLeftP, int &inRightP, int middle)
 
bool StartLine (std::vector< TInputPix > &buffer, std::vector< TInputPix > &inbuffer, InputImagePixelType &Extreme, int &outLeftP, int &outRightP, int &inLeftP, int &inRightP, int middle)
 
bool StrictCompare (const InputImagePixelType &a, const InputImagePixelType &b)
 
bool UseVectorBasedHistogram ()
 

Private Attributes

unsigned int m_Size
 

Member Typedef Documentation

template<typename TInputPix , typename TCompare >
using itk::AnchorErodeDilateLine< TInputPix, TCompare >::HistogramType = Function::MorphologyHistogram< InputImagePixelType, TCompare >
private

Definition at line 60 of file itkAnchorErodeDilateLine.h.

template<typename TInputPix , typename TCompare >
using itk::AnchorErodeDilateLine< TInputPix, TCompare >::InputImagePixelType = TInputPix

Some convenient type alias.

Definition at line 42 of file itkAnchorErodeDilateLine.h.

Constructor & Destructor Documentation

template<typename TInputPix , typename TCompare >
itk::AnchorErodeDilateLine< TInputPix, TCompare >::AnchorErodeDilateLine ( )
template<typename TInputPix , typename TCompare >
itk::AnchorErodeDilateLine< TInputPix, TCompare >::~AnchorErodeDilateLine ( )
default

Member Function Documentation

template<typename TInputPix , typename TCompare >
bool itk::AnchorErodeDilateLine< TInputPix, TCompare >::Compare ( const InputImagePixelType a,
const InputImagePixelType b 
)
inlineprivate

Definition at line 98 of file itkAnchorErodeDilateLine.h.

References itk::Math::AlmostEquals().

template<typename TInputPix , typename TCompare >
void itk::AnchorErodeDilateLine< TInputPix, TCompare >::DoLine ( std::vector< TInputPix > &  buffer,
std::vector< TInputPix > &  inbuffer,
unsigned  bufflength 
)
template<typename TInputPix , typename TCompare >
void itk::AnchorErodeDilateLine< TInputPix, TCompare >::FinishLine ( std::vector< TInputPix > &  buffer,
std::vector< TInputPix > &  inbuffer,
InputImagePixelType Extreme,
int &  outLeftP,
int &  outRightP,
int &  inLeftP,
int &  inRightP,
int  middle 
)
private
template<typename TInputPix , typename TCompare >
void itk::AnchorErodeDilateLine< TInputPix, TCompare >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
template<typename TInputPix , typename TCompare >
void itk::AnchorErodeDilateLine< TInputPix, TCompare >::SetSize ( unsigned int  size)
inline

Definition at line 47 of file itkAnchorErodeDilateLine.h.

template<typename TInputPix , typename TCompare >
bool itk::AnchorErodeDilateLine< TInputPix, TCompare >::StartLine ( std::vector< TInputPix > &  buffer,
std::vector< TInputPix > &  inbuffer,
InputImagePixelType Extreme,
int &  outLeftP,
int &  outRightP,
int &  inLeftP,
int &  inRightP,
int  middle 
)
private
template<typename TInputPix , typename TCompare >
bool itk::AnchorErodeDilateLine< TInputPix, TCompare >::StrictCompare ( const InputImagePixelType a,
const InputImagePixelType b 
)
inlineprivate

Definition at line 92 of file itkAnchorErodeDilateLine.h.

template<typename TInputPix , typename TCompare >
bool itk::AnchorErodeDilateLine< TInputPix, TCompare >::UseVectorBasedHistogram ( )
inlineprivate

Definition at line 80 of file itkAnchorErodeDilateLine.h.

Member Data Documentation

template<typename TInputPix , typename TCompare >
unsigned int itk::AnchorErodeDilateLine< TInputPix, TCompare >::m_Size
private

Definition at line 58 of file itkAnchorErodeDilateLine.h.


The documentation for this class was generated from the following file: