MMACH commands
PROGRAM NAME
vaddm - Add Image1 to Image2 Pixel by Pixel
DESCRIPTION
vaddm
Adds the first input image to the second input image (result = image1 + image2), with an optional operation gating image. The second input image can be entered as a constant, optionally.
If the sum of two pixel values is more than the maximum value of the image data type, the resultant pixel value will be set to this maximum value.
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. The output
image data type will be the same as that of the highest data type
of the input images.
REQUIRED ARGUMENTS
- -i1
-
type: infile
desc: first input image
- -o
-
type: outfile
desc: resulting output image
Mutually Exclusive Group; you must specify ONE of:
- -i2
-
type: infile
desc: second input image
default: {none}
OR
- -c
-
type: integer
desc: add constant
default: 0
bounds: 0 < [-c] < 255
OPTIONAL ARGUMENTS
none
EXAMPLES
vaddm -i1 input.image1 -i2 input.image2 -o output.image
This subtracts input.image2 from input.image1 stores the results in output.image.
SEE ALSO
vcast1(1)
RESTRICTIONS
vaddm
can be defined for all data types supported by Khoros, but at the moment it has been implemented just for the bit and unsigned char types.
The structuring elements are subsets of the 3x3 matrix and the origin is always at the center of this matrix.
REFERENCES
COPYRIGHT
Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.