ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkBinaryMedianImageFilter.h>
Applies a version of the median filter optimized for binary images.
This filter was contributed by Bjorn Hanch Sollie after identifying that the generic Median filter performed unnecessary operations when the input image is binary.
This filter computes an image where a given pixel is the median value of the pixels in a neighborhood about the corresponding input pixel. For the case of binary images the median can be obtained by simply counting the neighbors that are foreground.
A median filter is one of the family of nonlinear filters. It is used to smooth an image without being biased by outliers or shot noise.
Definition at line 49 of file itkBinaryMedianImageFilter.h.
Static Public Member Functions | |
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 const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Attributes | |
InputPixelType | m_BackgroundValue |
InputPixelType | m_ForegroundValue |
InputSizeType | m_Radius |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef SmartPointer< const Self > itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 68 of file itkBinaryMedianImageFilter.h.
typedef InputImageType::RegionType itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::InputImageRegionType |
Definition at line 80 of file itkBinaryMedianImageFilter.h.
typedef TInputImage itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::InputImageType |
Convenient typedefs for simplifying declarations.
Definition at line 61 of file itkBinaryMedianImageFilter.h.
typedef InputImageType::PixelType itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::InputPixelType |
Image typedef support.
Definition at line 74 of file itkBinaryMedianImageFilter.h.
typedef InputImageType::SizeType itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::InputSizeType |
Definition at line 83 of file itkBinaryMedianImageFilter.h.
typedef OutputImageType::RegionType itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::OutputImageRegionType |
Definition at line 81 of file itkBinaryMedianImageFilter.h.
typedef TOutputImage itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::OutputImageType |
Definition at line 62 of file itkBinaryMedianImageFilter.h.
typedef OutputImageType::PixelType itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::OutputPixelType |
Definition at line 78 of file itkBinaryMedianImageFilter.h.
typedef SmartPointer< Self > itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 67 of file itkBinaryMedianImageFilter.h.
typedef BinaryMedianImageFilter itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 65 of file itkBinaryMedianImageFilter.h.
typedef ImageToImageFilter< InputImageType, OutputImageType > itk::BinaryMedianImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 66 of file itkBinaryMedianImageFilter.h.
|
protected |
|
inlineoverrideprotectedvirtual |
Definition at line 127 of file itkBinaryMedianImageFilter.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::Object.
|
overridevirtual |
BinaryMedianImageFilter needs a larger input requested region than the output requested region. As such, BinaryMedianImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Get the value associated with the Foreground (or the object) on the binary input image and the Background .
|
virtual |
Get the value associated with the Foreground (or the object) on the binary input image and the Background .
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Get the radius of the neighborhood used to compute the median
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set the value associated with the Foreground (or the object) on the binary input image and the Background .
|
virtual |
Set the value associated with the Foreground (or the object) on the binary input image and the Background .
|
virtual |
Set the radius of the neighborhood used to compute the median.
|
overrideprotectedvirtual |
BinaryMedianImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
Reimplemented from itk::ImageSource< TOutputImage >.
|
static |
Extract dimension from input and output image.
Definition at line 55 of file itkBinaryMedianImageFilter.h.
|
private |
Definition at line 149 of file itkBinaryMedianImageFilter.h.
|
private |
Definition at line 148 of file itkBinaryMedianImageFilter.h.
|
private |
Definition at line 144 of file itkBinaryMedianImageFilter.h.
|
static |
Extract dimension from input and output image.
Definition at line 57 of file itkBinaryMedianImageFilter.h.