6.6.8
Single Math
A mathematical operation is performed for each pixel of the current image.
The following eight mathematical operations are provided.
Operation
Invert
Multiply
Divide
Bitwise AND
Bitwise OR
Bitwise XOR
Add
Subtract
Here, pixel data does not mean the display brightness data (0 to 255) but the acquired 16
bit raw data (0 to 65535). Although an integer from 0 to 65535 can be entered for
Bitwise AND, OR, XOR, Add and Subtract, the result is converted to the range 0 to 255
for display.
If the resultant of the mathematical operation is negative, it is replaced with 0. If the
resultant of the mathematical operation exceeds 255, it is replaced with 255.
A mathematical operation is performed for each pixel, as follows.
【Example】
Invert
Original image
0 (0000 0000)
128 (1000 0000)
Multiply
Original image
128
TMPM5200-2
Brightness-inverted image display
Product of pixel data and a constant
Pixel data divided by a constant
Logical multiplication of pixel data and a
constant in each bit
Logical sum of pixel data and a constant in
each bit
Exclusive OR of pixel data and a constant in
each bit
Sum of pixel data and a constant
Difference of pixel data and a constant
Constant
20
3.0
3.0
Description
Xa = ・ Xa
Calculated value
→ 255 (1111 1111)
→ 127 (0111 1111)
Calculated value
60
255
6 ANALYSIS OPERATION
Effective value
⎯
The same image if 1.0
The same image if 1.0
Integer 0 to 65535
Integer 0 to 65535
Integer 0 to 65535
Integer 0 to 65535
Integer 0 to 65535
6-33
Need help?
Do you have a question about the JSPM-5200 and is the answer not in the manual?