1.8.0
CCC
 
Loading...
Searching...
No Matches
Basic operations

Functions

void gstlrn::morpho_erosion (Id option, const 1 &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 
void gstlrn::morpho_dilation (Id option, const 1 &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 
void gstlrn::morpho_opening (Id option, const 1 &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 
void gstlrn::morpho_closing (Id option, const 1 &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()

void gstlrn::morpho_closing ( Id  option,
const 1 &  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()

void gstlrn::morpho_dilation ( Id  option,
const 1 &  radius,
const BImage imagin,
BImage imagout,
bool  verbose 
)

Perform the "dilation" of the input image

◆ morpho_erosion()

void gstlrn::morpho_erosion ( Id  option,
const 1 &  radius,
const BImage imagin,
BImage imagout,
bool  verbose 
)

Perform the "erosion" of the input image

◆ morpho_opening()

void gstlrn::morpho_opening ( Id  option,
const 1 &  radius,
const BImage imagin,
BImage imagout,
bool  verbose 
)

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