ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkMovingHistogramImageFilter.h>
Implements a generic moving histogram algorithm.
This filter is a base class to implement efficiently many neighborhood filters. Instead of visiting all the neighbors of a pixel, the set of pixels in the neighborhood is updated when the filter is moving to a new pixel. The number of pixels read for each pixel can be very smaller than the number of pixels read by a basic algorithm.
This filter moves the neighborhood over all the pixels of the output requested region, and pass the pixel added and removed of the neighborhood to the an histogram class. This filter doesn't implement the histogram class - it must be implement and passed as template parameter. The histogram class is not necessary a real histogram. It can be implemented in many ways, and only has to provide the methods described below.
This filter takes 4 template parameters: the input and output image type, the structuring element (or kernel) type, and the histogram type. The input and output image must have the same number of dimension.
The histogram type is a class which has to implements six methods:
MovingHistogramImageFilter add the new pixels before removing the old ones, so, if AddBoundary() is implemented and/or the kernel is symetric, it is safe to consider that the histogram will never be empty.
One histogram is created for each thread by the method NewHistogram(). The NewHistogram() method can be overiden to pass some parameters to the histogram.
The neighborhood is defined by a structuring element, and must a itk::Neighborhood object or a subclass. The structuring element is assumed to be composed of binary values (zero or one). Only elements of the structuring element having values > 0 are candidates for affecting the center pixel.
Definition at line 88 of file itkMovingHistogramImageFilter.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | IndexType = typename TInputImage::IndexType |
using | InputImageType = TInputImage |
using | KernelIteratorType = typename KernelType::ConstIterator |
using | KernelType = TKernel |
using | OffsetListType = typename std::list< OffsetType > |
using | OffsetMapType = typename std::map< OffsetType, OffsetListType, Functor::LexicographicCompare > |
using | OffsetType = typename TInputImage::OffsetType |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | OutputImageType = TOutputImage |
using | OutputPixelType = typename TOutputImage::PixelType |
using | PixelType = typename TInputImage::PixelType |
using | Pointer = SmartPointer< Self > |
using | RadiusType = typename KernelType::SizeType |
using | RegionType = typename TInputImage::RegionType |
using | Self = MovingHistogramImageFilter |
using | SizeType = typename TInputImage::SizeType |
using | Superclass = MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel > |
Public Types inherited from itk::MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel > | |
using | ConstPointer = SmartPointer< const Self > |
using | IndexType = typename TInputImage::IndexType |
using | InputImageType = TInputImage |
using | KernelIteratorType = typename KernelType::ConstIterator |
using | KernelType = TKernel |
using | OffsetListType = typename std::list< OffsetType > |
using | OffsetMapType = typename std::map< OffsetType, OffsetListType, Functor::LexicographicCompare > |
using | OffsetType = typename TInputImage::OffsetType |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | OutputImageType = TOutputImage |
using | OutputPixelType = typename TOutputImage::PixelType |
using | PixelType = typename TInputImage::PixelType |
using | Pointer = SmartPointer< Self > |
using | RadiusType = typename KernelType::SizeType |
using | RegionType = typename TInputImage::RegionType |
using | Self = MovingHistogramImageFilterBase |
using | SizeType = typename TInputImage::SizeType |
using | Superclass = KernelImageFilter< TInputImage, TOutputImage, TKernel > |
Public Types inherited from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel > | |
using | ConstPointer = SmartPointer< const Self > |
using | FlatKernelType = FlatStructuringElement<(Self::ImageDimension)> |
using | IndexType = typename TInputImage::IndexType |
using | InputImageType = TInputImage |
using | InputPixelType = typename TInputImage::PixelType |
using | KernelType = TKernel |
using | OffsetType = typename TInputImage::OffsetType |
using | OutputImageType = TOutputImage |
using | OutputPixelType = typename TOutputImage::PixelType |
using | Pointer = SmartPointer< Self > |
using | RadiusType = typename TInputImage::SizeType |
using | RegionType = typename TInputImage::RegionType |
using | Self = KernelImageFilter |
using | SizeType = typename TInputImage::SizeType |
using | Superclass = BoxImageFilter< TInputImage, TOutputImage > |
Public Types inherited from itk::BoxImageFilter< TInputImage, TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | IndexType = typename TInputImage::IndexType |
using | InputImageType = TInputImage |
using | InputPixelType = typename TInputImage::PixelType |
using | OffsetType = typename TInputImage::OffsetType |
using | OutputImageType = TOutputImage |
using | OutputPixelType = typename TOutputImage::PixelType |
using | Pointer = SmartPointer< Self > |
using | RadiusType = typename TInputImage::SizeType |
using | RadiusValueType = typename TInputImage::SizeValueType |
using | RegionType = typename TInputImage::RegionType |
using | Self = BoxImageFilter |
using | SizeType = typename TInputImage::SizeType |
using | Superclass = ImageToImageFilter< TInputImage, TOutputImage > |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | Pointer = SmartPointer< Self > |
using | Self = ImageToImageFilter |
using | Superclass = ImageSource< TOutputImage > |
Public Types inherited from itk::ImageSource< TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = Superclass::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TOutputImage |
using | Pointer = SmartPointer< Self > |
using | Self = ImageSource |
using | Superclass = ProcessObject |
Public Types inherited from itk::ProcessObject | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArray = std::vector< DataObjectPointer > |
using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
using | MultiThreaderType = MultiThreaderBase |
using | NameArray = std::vector< DataObjectIdentifierType > |
using | Pointer = SmartPointer< Self > |
using | Self = ProcessObject |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::BoxImageFilter< TInputImage, TOutputImage > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel > | |
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel > | |
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::BoxImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Types | |
using | HistogramType = THistogram |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
using | InputToOutputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::OutputImageDimension, Self::InputImageDimension > |
using | OutputToInputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::InputImageDimension, Self::OutputImageDimension > |
Additional Inherited Members | |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel > | |
OffsetMapType | m_AddedOffsets |
FixedArray< int, Self::ImageDimension > | m_Axes |
OffsetListType | m_KernelOffsets |
SizeValueType | m_PixelsPerTranslation |
OffsetMapType | m_RemovedOffsets |
Protected Attributes inherited from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel > | |
KernelType | m_Kernel |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
bool | m_DynamicMultiThreading |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::ConstPointer = SmartPointer< const Self > |
Definition at line 98 of file itkMovingHistogramImageFilter.h.
|
protected |
Definition at line 147 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::IndexType = typename TInputImage::IndexType |
Definition at line 112 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::InputImageType = TInputImage |
Image related type alias.
Definition at line 108 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::KernelIteratorType = typename KernelType::ConstIterator |
Kernel (structuring element) iterator.
Definition at line 125 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::KernelType = TKernel |
Kernel type alias.
Definition at line 122 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::OffsetListType = typename std::list< OffsetType > |
Definition at line 130 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::OffsetMapType = typename std::map< OffsetType, OffsetListType, Functor::LexicographicCompare > |
Definition at line 132 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::OffsetType = typename TInputImage::OffsetType |
Definition at line 114 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::OutputImageRegionType = typename Superclass::OutputImageRegionType |
Definition at line 115 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::OutputImageType = TOutputImage |
Definition at line 109 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::OutputPixelType = typename TOutputImage::PixelType |
Definition at line 116 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::PixelType = typename TInputImage::PixelType |
Definition at line 113 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::Pointer = SmartPointer< Self > |
Definition at line 97 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::RadiusType = typename KernelType::SizeType |
n-dimensional Kernel radius.
Definition at line 128 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::RegionType = typename TInputImage::RegionType |
Definition at line 110 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::Self = MovingHistogramImageFilter |
Standard class type aliases.
Definition at line 95 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::SizeType = typename TInputImage::SizeType |
Definition at line 111 of file itkMovingHistogramImageFilter.h.
using itk::MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >::Superclass = MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel > |
Definition at line 96 of file itkMovingHistogramImageFilter.h.
|
protected |
|
overrideprotecteddefault |
|
inlinevirtual |
Configure the histogram. Subclasses must override this method.
Reimplemented in itk::MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel, THistogram >, itk::MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel, Function::MorphologyHistogram< TInputImage::PixelType, std::less< TInputImage::PixelType > > >, and itk::MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel, Function::MorphologyHistogram< TInputImage::PixelType, std::greater< TInputImage::PixelType > > >.
Definition at line 136 of file itkMovingHistogramImageFilter.h.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Reimplemented in itk::MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel, THistogram >, itk::MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel, Function::MorphologyHistogram< TInputImage::PixelType, std::less< TInputImage::PixelType > > >, and itk::MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel, Function::MorphologyHistogram< TInputImage::PixelType, std::greater< TInputImage::PixelType > > >.
|
overrideprotectedvirtual |
Multi-thread version of GenerateData.
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Runtime information support.
Reimplemented from itk::MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel >.
Reimplemented in itk::MovingHistogramMorphologicalGradientImageFilter< TInputImage, TOutputImage, TKernel >, itk::AdaptiveHistogramEqualizationImageFilter< TImageType, TKernel >, itk::RankImageFilter< TInputImage, TOutputImage, TKernel >, itk::MovingHistogramDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::MovingHistogramErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel, THistogram >, itk::MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel, Function::MorphologyHistogram< TInputImage::PixelType, std::less< TInputImage::PixelType > > >, and itk::MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel, Function::MorphologyHistogram< TInputImage::PixelType, std::greater< TInputImage::PixelType > > >.
|
static |
Standard New method.
|
protected |
|
static |
Image related type alias.
Definition at line 119 of file itkMovingHistogramImageFilter.h.