PANDORE Version 6 | GREYC-IMAGE |
pderiche computes the gradient magnitude and the gradient direction images and performs the maxima localization. The output image can then be used to locate the contours. The output image im_out is built with the maximum magnitude value in the direction of the gradient. Other values are set to 0.
The gradient magnitude value reflects the amount of grayscale variation in this point. The more is the variation, the greater is the value.
The gradient extraction and localization is done in three steps :
The direction is the atan(dy/dx) measured in radians.
The direction image im_dir is necessarily of type
float (values in [0..2*PI]).
Warning: the direction follows the image coordinate system,
it means that it's going clockwise when displayed, since the
y coordinates are inversed in the image system.
Note: The image border of size 1 is set to 0.
Returns SUCCESS or FAILURE.
Performs an edge detection for the tangram.pan image:
pderiche 1 tangram.pan a.pan b.pan pbinarization 10 1e30 a.pan c.pan
Détection et localisation des contours par l'algorithme de Deriche.
Author: Carlotti & Joguet