18 #ifndef itkMovingHistogramMorphologicalGradientImageFilter_h 19 #define itkMovingHistogramMorphologicalGradientImageFilter_h 28 template<
typename TInputPixel >
42 typedef std::map< TInputPixel, SizeValueType >
MapType;
54 inline TInputPixel
GetValue(
const TInputPixel &)
62 typename MapType::iterator mapIt =
m_Map.begin();
63 while ( mapIt !=
m_Map.end() )
65 if ( mapIt->second == 0 )
71 TInputPixel toErase = mapIt->first;
84 return m_Map.rbegin()->first -
m_Map.begin()->first;
98 template<
typename TInputPixel >
163 return m_Max - m_Min;
224 template<
typename TInputImage,
typename TOutputImage,
typename TKernel >
227 typename Function::MorphologicalGradientHistogram< typename TInputImage::
260 itkStaticConstMacro(ImageDimension,
unsigned int,
261 TInputImage::ImageDimension);
274 void operator=(
const Self &) ITK_DELETE_FUNCTION;
VectorMorphologicalGradientHistogram()
MorphologicalGradientHistogram()
Implements a generic moving histogram algorithm.
TInputImage::SizeType SizeType
Function::MorphologicalGradientHistogram< PixelType > HistogramType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
TOutputImage OutputImageType
Morphological gradients enhance the variation of pixel intensity in a given neighborhood.
unsigned long SizeValueType
SmartPointer< const Self > ConstPointer
TInputImage::IndexType IndexType
TInputPixel GetValue(const TInputPixel &)
static bool GetUseVectorBasedAlgorithm()
static ITK_CONSTEXPR_FUNC T max(const T &)
MovingHistogramMorphologicalGradientImageFilter Self
TInputImage::RegionType RegionType
static bool UseVectorBasedAlgorithm()
void AddPixel(const TInputPixel &p)
TInputImage::PixelType PixelType
void RemovePixel(const TInputPixel &p)
TInputImage::OffsetType OffsetType
MovingHistogramMorphologicalGradientImageFilter()
std::vector< SizeValueType > m_Vector
std::map< TInputPixel, SizeValueType > MapType
static ITK_CONSTEXPR_FUNC T NonpositiveMin()
TInputImage InputImageType
Base class for filters that take an image as input and produce an image as output.
~MovingHistogramMorphologicalGradientImageFilter()
MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, typename Function::MorphologicalGradientHistogram< typename TInputImage::PixelType > > Superclass
Superclass::OutputImageRegionType OutputImageRegionType
~VectorMorphologicalGradientHistogram()
Define additional traits for native types such as int or float.
TOutputImage::PixelType OutputPixelType
static bool UseVectorBasedAlgorithm()
TInputPixel GetValue(const TInputPixel &)
~MorphologicalGradientHistogram()
SmartPointer< Self > Pointer
void RemovePixel(const TInputPixel &p)
void AddPixel(const TInputPixel &p)