conv3x3

[ XITE Reference Manual | XITE home ]

Name

conv3x3 - convolution between image and 3x3 matrix

Syntax

 conv3x3 [-scale <f>] [-offset <m>] [-title <title>]
       [-verbose] <inimage> <outimage> <v1> .. <v9>
  or:
 conv3x3 [-scale <f>] [-offset <m>] [-title <title>]
        [-verbose] -conv <datafile> <inimage> <outimage>

Description

conv3x3 performs a 3x3 convolution on the input image inimage and writes the result to outimage.

The convolution kernel is specified as a list of nine integers, on the command line or in an ascii file.

Options

-conv filename
filename specifies an Ascii file with the nine integers for the convolution kernel.

-scale scale
Scale convolution result. Default: Autoscaling.
 pix = (conv. result) * scale

-offset offset
Offset (scaled) convolution result.
 pix = (conv. result) * scale + offset

-title title
Use title as title for the output image.

-verbose
With this standard XITE option, a message is written if the convolution sum is less than 0 or greater than 255. If autoscaling is in effect, the scale and offset factors are displayed.

See also

conv3x3(3), convolve(1), laplace(1), gradient(1), sobel(1), prewitt(1), roberts(1)

Example

 conv3x3 mona.img m.img -scale 1.5 1 1 1 1 1 1 1 1 1
 conv3x3 mona.img m.img - s 2.0 -o 33 -c conv.fil

Author

Otto Milvang & Tor Lønnestad

Id

$Id: conv3x3.c,v 1.36 1997/01/10 15:57:37 svein Exp $