Roper 4411-0046 Automobile Accessories User Manual


 
Chapter 9 Image Math 149
Bits Value
Pixel value in
A
0 1 0 1 0 1 0 10 1 0 1 1365
Corresponding pixel value in
B
0 0 0 0 0 0 1 1 1 1 1 1 63
Result written to
C
0 0 0 0 0 0 0 1 0 1 0 1 21
OR:
A bitwise OR operation is performed on the binary representation of each pixel of
the
A
file and each pixel of the
B
file, with the result written to the
C
file. An eight-
bit example follows.
Bits
Decimal
Value
Pixel value in
A
0 1 0 1 0 1 0 10 1 0 1 1365
Corresponding pixel value in
B
0 0 0 0 0 0 1 1 1 1 1 1 63
Result written to
C
0 1 0 1 0 1 1 1 1 1 1 1 1407
Exclusive OR:
A bitwise Exclusive OR operation is performed on the binary
representation of each pixel of the
A
file and each pixel of the
B
file, with the result
written to the
C
file. An eight-bit example follows.
Bits
Decimal
Value
Pixel value in
A
0 1 0 1 0 1 0 10 1 0 1 1365
Corresponding pixel value in
B
0 0 0 0 0 0 1 1 1 1 1 1 63
Result written to
C
0 1 0 1 0 1 1 0 1 0 1 0 1386
Complement:
For each pixel value n in the
A
file, the corresponding value in the
output file
C
is set to -1-n. Otherwise stated, each 0 becomes a 1 and each 1 a 0.
Binary Operations
NOT:
For each pixel in the
A
file, all non-zero values yield a zero, and all zero values
(only) yield a one. The resulting values are written to the corresponding point of the
C
file.
Procedure
Select the operation to be performed on the Operation tab page.
Enter the first input filename on the
A
tab page.
If the operation involves two files or one file and a constant, enter the second file
name on the
B
tab page or enter the value of the constant on the
B
tab page.