SMIL 1.1.2
Loading...
Searching...
No Matches
Geodesic Transforms

Geodesic Transformations. More...

Detailed Description

Geodesic Transformations.

See also
+ Collaboration diagram for Geodesic Transforms:

Functions

template<class T >
RES_T geoDilate (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 geoDilate() - Geodesic dilation
 
template<class T >
RES_T geoErode (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 geoErode() - Geodesic erosion
 
template<class T >
RES_T geoBuild (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 geoBuild() - Geodesic Reconstruction
 
template<class T >
RES_T geoDualBuild (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 geoDualBuild() - Geodesic Dual Reconstruction
 
template<class T >
RES_T dualBuild (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 dualBuild() - Reconstruction by erosion - dual build - (using hierarchical queues).
 
template<class T >
RES_T build (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 build() - Reconstruction by dilation (using hierarchical queues).
 
template<class T >
RES_T binBuild (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 binBuild() - Reconstruction (using hierarchical queues).
 
template<class T >
RES_T hBuild (const Image< T > &imIn, const T &height, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 hBuild() - h-Reconstuction
 
template<class T >
RES_T hDualBuild (const Image< T > &imIn, const T &height, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 hDualBuild() - Dual h-Reconstuction
 
template<class T >
RES_T buildOpen (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 buildOpen() - Opening by reconstruction
 
template<class T >
RES_T buildClose (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 buildClose() - Closing by reconstruction
 
template<class T >
RES_T asBuildOpen (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Alternate Sequential reconstructions beginning by a buildOpen.
 
template<class T >
RES_T asBuildClose (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Alternate Sequential reconstructions beginning by a buildClose.
 
template<class T >
RES_T fillHoles (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 fillHoles() - Hole filling
 
template<class T >
RES_T levelPics (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 levelPics() - Dual hole filling
 

Function Documentation

◆ geoDilate()

template<class T >
RES_T geoDilate ( const Image< T > &  imIn,
const Image< T > &  imMask,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

geoDilate() - Geodesic dilation

Parameters
[in]imIn: input image
[in]imMask: mask
[out]imOut: output image
[in]se: structuring element

◆ geoErode()

template<class T >
RES_T geoErode ( const Image< T > &  imIn,
const Image< T > &  imMask,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

geoErode() - Geodesic erosion

Parameters
[in]imIn: input image
[in]imMask: mask
[out]imOut: output image
[in]se: structuring element

◆ geoBuild()

template<class T >
RES_T geoBuild ( const Image< T > &  imIn,
const Image< T > &  imMask,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

geoBuild() - Geodesic Reconstruction

Parameters
[in]imIn: input image
[in]imMask: mask
[out]imOut: output image
[in]se: structuring element

◆ geoDualBuild()

template<class T >
RES_T geoDualBuild ( const Image< T > &  imIn,
const Image< T > &  imMask,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

geoDualBuild() - Geodesic Dual Reconstruction

Parameters
[in]imIn: input image
[in]imMask: mask
[out]imOut: output image
[in]se: structuring element

◆ dualBuild()

template<class T >
RES_T dualBuild ( const Image< T > &  imIn,
const Image< T > &  imMask,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

dualBuild() - Reconstruction by erosion - dual build - (using hierarchical queues).

Parameters
[in]imIn: input image
[in]imMask: mask
[out]imOut: output image
[in]se: structuring element

◆ build()

template<class T >
RES_T build ( const Image< T > &  imIn,
const Image< T > &  imMask,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

build() - Reconstruction by dilation (using hierarchical queues).

Parameters
[in]imIn: input image
[in]imMask: mask
[out]imOut: output image
[in]se: structuring element

◆ binBuild()

template<class T >
RES_T binBuild ( const Image< T > &  imIn,
const Image< T > &  imMask,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

binBuild() - Reconstruction (using hierarchical queues).

Parameters
[in]imIn: input image
[in]imMask: mask
[out]imOut: output image
[in]se: structuring element

◆ hBuild()

template<class T >
RES_T hBuild ( const Image< T > &  imIn,
const T &  height,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

hBuild() - h-Reconstuction

Performs a subtraction of size height followed by a reconstruction

Parameters
[in]imIn: input image
[in]height: value to be subtracted to the image values
[out]imOut: output image
[in]se: structuring element

◆ hDualBuild()

template<class T >
RES_T hDualBuild ( const Image< T > &  imIn,
const T &  height,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

hDualBuild() - Dual h-Reconstuction

Performs an addition of size height followed by a dual reconstruction

Parameters
[in]imIn: input image
[in]height: value to be added to the image values
[out]imOut: output image
[in]se: structuring element

◆ buildOpen()

template<class T >
RES_T buildOpen ( const Image< T > &  imIn,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

buildOpen() - Opening by reconstruction

Erosion followed by a reconstruction (build)

Parameters
[in]imIn: input image
[out]imOut: output image
[in]se: structuring element

◆ buildClose()

template<class T >
RES_T buildClose ( const Image< T > &  imIn,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

buildClose() - Closing by reconstruction

Dilation followed by a reconstruction (dualBuild)

Parameters
[in]imIn: input image
[out]imOut: output image
[in]se: structuring element

◆ asBuildOpen()

template<class T >
RES_T asBuildOpen ( const Image< T > &  imIn,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

Alternate Sequential reconstructions beginning by a buildOpen.

Sequence of buildOpen() and buildClose() with increasing size 1, 2, ..., max_size. The max_size is given by the size of the structuring element (for example 3 for SE(3)).

Parameters
[in]imIn: input image
[out]imOut: output image
[in]se: structuring element with the maximum size of the filter

◆ asBuildClose()

template<class T >
RES_T asBuildClose ( const Image< T > &  imIn,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

Alternate Sequential reconstructions beginning by a buildClose.

Sequence of buildClose() and buildOpen() with increasing size 1, 2, ..., max_size. The max_size is given by the size of the structuring element (for example 3 for SE(3)).

Parameters
[in]imIn: input image
[out]imOut: output image
[in]se: structuring element with the maximum size of the filter

Example

import smilpython as sp
imin = sp.Image("https://smil.cmm.minesparis.psl.eu/images/lena.png")
imout = sp.Image(imin)
sp.asfClose(imin, imout, sp.SquSE(5))

◆ fillHoles()

template<class T >
RES_T fillHoles ( const Image< T > &  imIn,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

fillHoles() - Hole filling

Parameters
[in]imIn: input image
[out]imOut: output image
[in]se: structuring element

◆ levelPics()

template<class T >
RES_T levelPics ( const Image< T > &  imIn,
Image< T > &  imOut,
const StrElt se = DEFAULT_SE 
)

levelPics() - Dual hole filling

Parameters
[in]imIn: input image
[out]imOut: output image
[in]se: structuring element