laplace

[ XITE Reference Manual | XITE home ]

Name

laplace - edge and line detection

Syntax

 laplace [-scale <n>] [-offset <m>]  [-title <title>]
          [-verbose] <inimage> <outimage> a b c

Description

laplace perform a 3x3 convolution on the input image inimage and write the result to outimage. The convolution kernel is specified by a, b and c

     a b a
     b c b
     a b a

If -scale (-s) and -offset (-o) is specified all data are scaled:
 pix = (conv. result) * scale + offset;
Othewise an autoscaling is performed.

-title (-t) title is used to set a new title on the output image.

If -verbose (-v) is specified laplace writes a message if the convolution sum is less than 0 or greater than 255. If autoscale is performed the scale and offset factors are displayed

Example

 laplace mona.img m.img -scale 1.5 -1 -1 8

See also

laplace(3), lapZeroCross(1), conv3x3(1)

Author

Otto Milvang

Id

$Id: laplace.c,v 1.25 1996/11/08 14:03:05 svein Exp $