|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Performs a morphological closing on a binary image, selectively filling only those holes whose surface-to-volume ratio exceeds a given threshold. More...
#include <itkIntelligentBinaryClosingFilter.h>


Public Types | |
| typedef IntelligentBinaryClosingFilter | Self |
| typedef TInputImage | InputImageType |
| typedef TOutputImage | OutputImageType |
| typedef ImageToImageFilter< InputImageType, OutputImageType > | Superclass |
| typedef SmartPointer< Self > | Pointer |
Public Member Functions | |
| itkStaticConstMacro (ImageDimension, unsigned int, TInputImage::ImageDimension) | |
| virtual const char * | GetClassName () const |
| Pointer | Clone () const |
| void | GenerateData () override |
| Execute the intelligent binary closing algorithm. More... | |
| void | SetInput (const InputImageType *input) override |
| Set the input binary image. More... | |
| void | SetInput (unsigned int i, const TInputImage *image) override |
| Set the input at a given index. Only index 0 is supported. More... | |
| virtual float | GetClosingRadius () |
| Get the radius used for the morphological closing structuring element. More... | |
| virtual void | SetClosingRadius (float _arg) |
| Set the radius of the structuring element for morphological closing. More... | |
| virtual float | GetSurfaceRatio () |
| Get the surface-to-volume ratio threshold. More... | |
| virtual void | SetSurfaceRatio (float _arg) |
| Set the surface-to-volume ratio threshold. More... | |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| IntelligentBinaryClosingFilter () | |
| ~IntelligentBinaryClosingFilter () override | |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
Performs a morphological closing on a binary image, selectively filling only those holes whose surface-to-volume ratio exceeds a given threshold.
Unlike a standard binary closing, this filter analyzes connected components in the closed region (the difference between dilated and eroded images) and only fills components that meet the surface ratio criterion. This prevents the closing operation from filling large cavities that should be preserved.
The filter internally uses a mini-pipeline consisting of dilation, erosion, subtraction, connected component analysis, and relabeling filters.
| TInputImage | The input image type (binary image). |
| TOutputImage | The output image type (typically a labeled or binary image). |
Definition at line 49 of file itkIntelligentBinaryClosingFilter.h.
| typedef TInputImage itk::IntelligentBinaryClosingFilter< TInputImage, TOutputImage >::InputImageType |
The type of input image.
Definition at line 56 of file itkIntelligentBinaryClosingFilter.h.
| typedef TOutputImage itk::IntelligentBinaryClosingFilter< TInputImage, TOutputImage >::OutputImageType |
The type of output image.
Definition at line 62 of file itkIntelligentBinaryClosingFilter.h.
| typedef SmartPointer<Self> itk::IntelligentBinaryClosingFilter< TInputImage, TOutputImage >::Pointer |
Smart pointer typedef support
Definition at line 68 of file itkIntelligentBinaryClosingFilter.h.
| typedef IntelligentBinaryClosingFilter itk::IntelligentBinaryClosingFilter< TInputImage, TOutputImage >::Self |
Standard "Self" typedef.
Definition at line 53 of file itkIntelligentBinaryClosingFilter.h.
| typedef ImageToImageFilter<InputImageType, OutputImageType> itk::IntelligentBinaryClosingFilter< TInputImage, TOutputImage >::Superclass |
Standard super class typedef support.
Definition at line 65 of file itkIntelligentBinaryClosingFilter.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 149 of file itkIntelligentBinaryClosingFilter.h.
| Pointer itk::IntelligentBinaryClosingFilter< TInputImage, TOutputImage >::Clone | ( | ) | const |
|
override |
Execute the intelligent binary closing algorithm.
This method is not multithreaded. It runs the internal mini-pipeline (dilate, erode, subtract, connected component analysis) and selectively fills holes based on the surface ratio.
|
virtual |
Run-time type information (and related methods)
|
virtual |
Get the radius used for the morphological closing structuring element.
|
virtual |
Get the surface-to-volume ratio threshold.
| itk::IntelligentBinaryClosingFilter< TInputImage, TOutputImage >::itkStaticConstMacro | ( | ImageDimension | , |
| unsigned int | , | ||
| TInputImage::ImageDimension | |||
| ) |
Dimension of the input and output images.
|
static |
Method for creation through the object factory.
|
overrideprotected |
|
virtual |
Set the radius of the structuring element for morphological closing.
| [in] | _arg | The closing radius in pixels. |
|
inlineoverride |
Set the input binary image.
Overloaded to also connect the input to the internal dilation filter.
| [in] | input | The input binary image. |
Definition at line 93 of file itkIntelligentBinaryClosingFilter.h.
|
inlineoverride |
Set the input at a given index. Only index 0 is supported.
| [in] | i | Input index (must be 0). |
| [in] | image | The input binary image. |
| itk::ExceptionObject | if i is not 0. |
Definition at line 107 of file itkIntelligentBinaryClosingFilter.h.
|
virtual |
Set the surface-to-volume ratio threshold.
Connected components in the difference image whose surface ratio exceeds this value will be filled in the output.
| [in] | _arg | The surface ratio threshold. |