PANDORE Version 6 | GREYC-IMAGE |
plocalmaxima builds the new image im_out with extremum pixels of the input image im_in. The value of the extremum pixel is the same as in the input image. All other pixels are set to 0.
A point is extremum if it is greater to at least one of two opposite neighbors and no lower than each of them:
im_in[y][x] > im_in[y-1][x] et im_in[y][x] >= im_in[y+1][x] or im_in[y][x] >= im_in[y-1][x] et im_in[y][x] > im_in[y+1][x]
Returns SUCCESS or FAILURE.
Detects the extrema in tangram.pan:
plocalextrema 8 tangram.pan a.pan
Localisation des points constituant un extréma dans au moins direction.
Author: Régis Clouard