SMIL  1.0.3
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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). More...
 
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). More...
 
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). More...
 
template<class T >
RES_T hBuild (const Image< T > &imIn, const T &height, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 hBuild() - h-Reconstuction More...
 
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 More...
 
template<class T >
RES_T buildOpen (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 buildOpen() - Opening by reconstruction More...
 
template<class T >
RES_T buildClose (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 buildClose() - Closing by reconstruction More...
 
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. More...
 
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. More...
 
template<class T >
RES_T fillHoles (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 fillHoles() - Hole filling More...
 
template<class T >
RES_T levelPics (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 levelPics() - Dual hole filling More...
 

Function Documentation

◆ geoDilate()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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()

RES_T smil::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