MMACH commands


PROGRAM NAME

vequal - Informs if two images are equal

DESCRIPTION

vequal compares two images pixel by pixel and informs if they are equal. In case that the images are equal, it returns a variable affect by the value 1, otherwise this variable is affected by the value 0. An optional constant image can be entered instead of image2.

The two input images must be of the same size and have the same number of data bands. The input images may be of the same or different data types. If the input images are of different data types, then all input images will be upcast to the highest input image data type.

REQUIRED ARGUMENTS

-i1
type: infile
desc: input file
-v
type: string
desc: variable
-o
type: outfile
desc: The first input file

Mutually Exclusive Group; you must specify ONE of:

-i2
type: infile
desc: input file
default: {none}
OR
-c
type: integer
desc: constant value
default: 0
bounds: 0 < [-c] < 255

OPTIONAL ARGUMENTS

none

EXAMPLES

vequal -i1 image1.xv -i2 image2.xv -v flag

SEE ALSO

vcast1(1)

RESTRICTIONS

vequal works for all data types supported by Khoros, but for the moment it is implemented only for bit and unsigned char images.

REFERENCES

COPYRIGHT

Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.