PANDORE Version 6 | GREYC-IMAGE |
pprewitt computes an approximation of the gradient magnitude of the input image im_in.
The algorithm uses the convolution with the following kernel:
|+1 +1 +1| |+0 +0 +0| |-1 -1 -1|
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.
Returns SUCCESS or FAILURE.
Performs an edge detection for the tangram.pan image:
pprewitt tangram.pan b.pan pbinarization 40 1e30 b.pan out.pan
Module du gradient de Prewitt.
Author: Régis Clouard