[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
LocalMinmaxOptions Class Reference |
Options object for localMinima() and localMaxima(). More...
#include <vigra/localminmax.hxx>
Public Member Functions | |
LocalMinmaxOptions & | allowAtBorder (bool f=true) |
Detect extrema at the image border. More... | |
LocalMinmaxOptions & | allowPlateaus (bool f=true) |
Allow extremal plateaus. More... | |
LocalMinmaxOptions () | |
Construct default options object. More... | |
LocalMinmaxOptions & | markWith (double m) |
Mark extrema in the destination image with the given value. More... | |
LocalMinmaxOptions & | neighborhood (unsigned int n) |
Use the given neighborhood. More... | |
LocalMinmaxOptions & | threshold (double t) |
Threshold the extrema. More... | |
Options object for localMinima() and localMaxima().
Usage:
#include <vigra/localminmax.hxx>
Namespace: vigra
Construct default options object.
Defaults are: marker value '1', no threshold, indirect neighborhood, don't allow extrema at border and extremal plateaus.
LocalMinmaxOptions& neighborhood | ( | unsigned int | n | ) |
Use the given neighborhood.
The value '0' indicates direct neighborhood (i.e. 4-neighborhood in 2D, 6-neighborhood in 3D, 2*N neighborhood in N-D), the value '1' indicates indirect neighborhood (i.e. 8-neighborhood in 2D, 26-neighborhood in 3D, 3N-1 neighborhood in N-D). The appropriate number of neighbors for the desired dimension and the constants DirectNeighborhood
and IndirectNeighborhood
can be used as well.
Default: 1 (indirect neighborhood)
LocalMinmaxOptions& markWith | ( | double | m | ) |
Mark extrema in the destination image with the given value.
Default: 1
LocalMinmaxOptions& threshold | ( | double | t | ) |
Threshold the extrema.
Discard minima whose gray value is not below the threshold. and maxima whose gray level is not above the threshold.
Default: don't threshold (i.e. return all extrema)
LocalMinmaxOptions& allowAtBorder | ( | bool | f = true | ) |
Detect extrema at the image border.
Default: false
LocalMinmaxOptions& allowPlateaus | ( | bool | f = true | ) |
Allow extremal plateaus.
That is regions of constant gray value whose neighbors are all higher (minima) or lower than the value of the region.
Default: false
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|