PANDORE Version 6 GREYC-IMAGE

pedgedirection



Computes the edge direction.



Synopsis

pedgedirection [-m mask] [im_in|-] [im_out|-]

Description

pedgedirection computes the direction of the contours. The contours are lines of value 255 and the background is of value 0.

The algorithm use an approximation of the normal direction to compute the contour direction.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Performs an edge detection based on hysteresis threshold and computes the edge direction:

   pgradient 1 tangram.pan i1.pan i2.pan
   pbinarization 30 1e30 i1.pan i3.pan
   pbinarization 60 1e30 i1.pan i4.pan
   pedgedirection i4.pan out.pan

See also

Edge detection

C++ prototype

Errc PEdgeDirection( const Img2duc &im_in, Img2duc &im_out);

Version française

Calcul la direction des contours.


Author: Régis Clouard