PANDORE Version 6 GREYC-IMAGE

proberts



Computes the Roberts gradient magnitude.



Synopsis

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

Description

proberts computes an approximation of the gradient magnitude of the input image im_in.

The algorithm uses the convolution with the following kernel:

   |+0 -1|
   |+1 +0|

The kernel is oriented in two directions: 0 and 90 degrees and the magnitude value is set to the maximum value between these two values.

The output image im_out is of the same type as the input image im_in.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Performs an edge detection for the tangram.pan image:

   proberts tangram.pan b.pan
   pbinarization 15 1e30 b.pan out.pan

See also

Edge detection

C++ prototype

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

Version française

Module du gradient de Roberts.


Author: Régis Clouard