Standalones

contour


Extracts the contours of an image. It works well only with images that have strong contrast between objects or faces.

You can specify the threshold on the command line. The threshold is the value of the smallest difference of intensity between two adjacent pixels for the standalone to determine that an edge exists.

Normally, pixels with an intensity difference lower than the threshold become black, and pixels with an intensity difference greater or equal to the threshold will become white. The result can be inverted with the -i option.

The high-contrast output images are non-filtered.

Usage

contour <input file> <output file> <start threshold>
[-e <end threshold>] [-i]
[-r <repeat count>] [-s <start frame> <end frame> <step>] [-v]
<input file> is the name of the image file whose contours you want to extract.

<output file> is the name you want to give to the result.

<start threshold> is an intensity value in the range [0, 1].

Options

-e
Varies the threshold continuously from frame to frame. You should specify the threshold for the final frame.

-i
Inverts the output image.

-r
Specifies how many times each frame should be repeated. The default is 1.

-s
Extracts the contour of a sequence of frames.

-v
Turns on the verbose mode.


Standalones Reference - 15 APR 1996

Generated with Harlequin WebMaker