1.3.2
CCC
 
Basic operations

Functions

GSTLEARN_EXPORT void morpho_erosion (int option, const VectorInt &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_dilation (int option, const VectorInt &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_opening (int option, const VectorInt &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_closing (int option, const VectorInt &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 

Detailed Description

Parameters
imaginPointer to the BImage containing the input image
imagoutPointer to the BImage which will receive the output image (It must have been allocated beforehand: same dimension as 'imagin')
optionDescription of the structuring element: 1 for BLOCK and 0 for CROSS (see remarks for more information)
radiusVector giving the extensions of the structuring element along each direction of the Space.
verboseVerbose flag
Remarks
In 2-D, if the central cell is denoted (i,j) and the radius is set to 1, the structuring element contains:
  • for CROSS: (i+1,j); (i-1,j); (i,j+1); (i,j-1)
  • for BLOCK: (i-1,j-1); (i-1,j); (i-1,j+1); (i,j-1); (i,j+1); (i+1,j-1); (i+1,j); (i+1,j+1)

Function Documentation

◆ morpho_closing()

GSTLEARN_EXPORT void morpho_closing ( int  option,
const VectorInt radius,
const BImage imagin,
BImage imagout,
bool  verbose 
)

Perform the "closing" of the input image (i.e. a dilation followed by an erosion)

◆ morpho_dilation()

GSTLEARN_EXPORT void morpho_dilation ( int  option,
const VectorInt radius,
const BImage imagin,
BImage imagout,
bool  verbose 
)

Perform the "dilation" of the input image

◆ morpho_erosion()

GSTLEARN_EXPORT void morpho_erosion ( int  option,
const VectorInt radius,
const BImage imagin,
BImage imagout,
bool  verbose 
)

Perform the "erosion" of the input image

◆ morpho_opening()

GSTLEARN_EXPORT void morpho_opening ( int  option,
const VectorInt radius,
const BImage imagin,
BImage imagout,
bool  verbose 
)

Perform the "opening" of the input image (i.e. an erosion followed by a dilation)