Geogram  Version 1.9.1
A programming library of geometric algorithms
GEO::MorphoMath Class Reference

Implements morphological operators for images. More...

#include <geogram/image/morpho_math.h>

Public Member Functions

 MorphoMath (Image *target)
 MorphoMath constructor. More...
 
 ~MorphoMath ()
 MorphoMath destructor;.
 
void dilate (const StructuringElement &elt, index_t nb_iterations=1)
 Computes a dilation. More...
 
void dilate (index_t nb_iterations=1)
 Computes a dilation with a default structuring element. More...
 

Detailed Description

Implements morphological operators for images.

Definition at line 129 of file morpho_math.h.

Constructor & Destructor Documentation

◆ MorphoMath()

GEO::MorphoMath::MorphoMath ( Image target)

MorphoMath constructor.

Only implemented for 2D images with byte components.

Parameters
[in]targeta pointer to the target image.
Precondition
target->component_encoding() == Image::BYTE

Member Function Documentation

◆ dilate() [1/2]

void GEO::MorphoMath::dilate ( const StructuringElement elt,
index_t  nb_iterations = 1 
)

Computes a dilation.

Parameters
[in]elta const reference to the structuring element.
[in]nb_iterationsnumber of dilations to be applied.

◆ dilate() [2/2]

void GEO::MorphoMath::dilate ( index_t  nb_iterations = 1)

Computes a dilation with a default structuring element.

Parameters
[in]nb_iterationsnumber of dilations to be applied.

The documentation for this class was generated from the following file: