|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkMovingHistogramMorphologicalGradientImageFilter_h
19 #define itkMovingHistogramMorphologicalGradientImageFilter_h
28 template <
typename TInputPixel>
44 using MapType = std::map<TInputPixel, SizeValueType>;
68 typename MapType::iterator mapIt =
m_Map.begin();
69 while (mapIt !=
m_Map.end())
71 if (mapIt->second == 0)
77 TInputPixel toErase = mapIt->first;
90 return m_Map.rbegin()->first -
m_Map.begin()->first;
105 template <
typename TInputPixel>
182 return TInputPixel{};
208 class MorphologicalGradientHistogram<signed char> :
public VectorMorphologicalGradientHistogram<signed char>
212 class ITK_TEMPLATE_EXPORT MorphologicalGradientHistogram<bool> :
public VectorMorphologicalGradientHistogram<bool>
234 template <
typename TInputImage,
typename TOutputImage,
typename TKernel>
240 typename Function::MorphologicalGradientHistogram<typename TInputImage::PixelType>>
typename TOutputImage::PixelType OutputPixelType
~MovingHistogramMorphologicalGradientImageFilter() override=default
MovingHistogramMorphologicalGradientImageFilter()=default
static constexpr T NonpositiveMin()
void AddPixel(const TInputPixel &p)
ImageBaseType::SizeType SizeType
static bool UseVectorBasedAlgorithm()
TInputPixel GetValue(const TInputPixel &)
void RemovePixel(const TInputPixel &p)
typename TInputImage::OffsetType OffsetType
ImageBaseType::IndexType IndexType
Base class for all process objects that output image data.
typename TInputImage::IndexType IndexType
typename TInputImage::PixelType PixelType
static constexpr unsigned int ImageDimension
Morphological gradients enhance the variation of pixel intensity in a given neighborhood.
static bool UseVectorBasedAlgorithm()
ImageBaseType::RegionType RegionType
TInputImage InputImageType
TInputPixel GetValue(const TInputPixel &)
~VectorMorphologicalGradientHistogram()=default
Define additional traits for native types such as int or float.
static constexpr T max(const T &)
typename OutputImageType::RegionType OutputImageRegionType
void RemovePixel(const TInputPixel &p)
std::vector< SizeValueType > m_Vector
Implements a generic moving histogram algorithm.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename TInputImage::SizeType SizeType
void AddPixel(const TInputPixel &p)
std::map< TInputPixel, SizeValueType > MapType
VectorMorphologicalGradientHistogram()
~MorphologicalGradientHistogram()=default
MorphologicalGradientHistogram()=default
unsigned long SizeValueType
TOutputImage OutputImageType
typename TInputImage::RegionType RegionType
static bool GetUseVectorBasedAlgorithm()