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 >
194 class MorphologicalGradientHistogram<signed char>:
195 public VectorMorphologicalGradientHistogram<signed char>
200 class MorphologicalGradientHistogram<bool>:
201 public VectorMorphologicalGradientHistogram<bool>
224 template<
typename TInputImage,
typename TOutputImage,
typename TKernel >
227 typename Function::MorphologicalGradientHistogram< typename TInputImage::
261 TInputImage::ImageDimension);
274 void operator=(const
Self &) ITK_DELETE_FUNCTION;
VectorMorphologicalGradientHistogram()
MorphologicalGradientHistogram()
Implements a generic moving histogram algorithm.
static const unsigned int ImageDimension
TInputImage::SizeType SizeType
Function::MorphologicalGradientHistogram< PixelType > HistogramType
TOutputImage OutputImageType
Base class for all process objects that output image data.
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()
MovingHistogramMorphologicalGradientImageFilter Self
TInputImage::RegionType RegionType
static bool UseVectorBasedAlgorithm()
void AddPixel(const TInputPixel &p)
TInputImage::PixelType PixelType
Superclass::OutputImageRegionType OutputImageRegionType
void RemovePixel(const TInputPixel &p)
TInputImage::OffsetType OffsetType
MovingHistogramMorphologicalGradientImageFilter()
std::vector< SizeValueType > m_Vector
std::map< TInputPixel, SizeValueType > MapType
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
static T NonpositiveMin()
~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)