6.6.9 Double
Math
A mathematical operation is performed for each pixel of the current image and any
desired image in the computer memory.
The following ten mathematical operations are provided.
Operation
Description
Add
Average of the data; (a+b)/2
Subtract
Difference of the data; (a
−
b+255)/2, that is, [a+(255
−
b)]/2
Difference Difference
of
absolute value of the data; |a|
−
|b|
Multiply
Product of the data; (a
*
b)/255
Divide
Quotient of current image data divided by selected image data (a/b)
Note: If “b” is zero, resultant set to “a”.
Bitwise AND
Logical multiplication of the two data in each bit (a AND b)
Bitwise OR
Logical sum of the two data in each bit (a OR b)
Bitwise XOR
Exclusive OR of the two data in each bit (a XOR b)
Minimum
The smaller of the two data
Maximum
The larger of the two data
Here, a shows the current image data and b shows the selected image data.
=
x
+
=
Calculated image
Image currently displayed
on the frame memor y
Image selected
from the list
Example
】
When Add is selected,
74
108
128 10
20 200
Calculated image
Image currently displayed
on the frame memor y
Image selected
from the list
6-34
TMPM5200-2