PANDORE Version 6 |
GREYC-IMAGE |
plocalmaxima
Computes local maximum values of grayscale image or graph.
Synopsis
plocalmaxima connexity [-m mask] [im_in|-] [im_out|-]
Description
plocalmaxima
builds the new image im_out with the local
maximum pixels of the input image im_in.
The value of the maximum pixel is the same as
in the input image. All other pixels are
set to 0.
A point is a maximum if no neighbor
is greater to it.
For graph, the maxima are computed from the node values.
Parameters
- connexity specifies the neighborhood relation
(4, 8 in 2D) or (6, 26 in 3D).
For graph, this parameter is ignored.
Inputs
- im_in: a grayscale image or a graph.
Outputs
- im_out: a grayscale image or a graph.
Result
Returns SUCCCESS or FAILURE.
Examples
Locates the local maxima in tangram.pan:
plocalmaxima 8 tangram.pan a.pan
See also
Image Features Extraction,
plocalminima
C++ prototype
Errc MaximaLocaux( const Img2duc &im_in, Img2duc &im_out, int connexity );
Version française
Localisation des points constituant un maximum local.
Author: Régis Clouard