Image Math

The Image Math module provides you with a way to perform arithmetic operations on a combination of two images.



1. Select the appropriate Image #1 and Image #2 on which to perform the function.

Source - the original image that was initially loaded or captured into RoboRealm
Current - the currently processed image within RoboRealm
Last - the last image processed by RoboRealm
CameraX - a list of attached and active USB camera devices
MarkerX - a list of created marker images using the Marker module. The Marker labels represent images at the time markers were created. If you wish to process the image at a certain point within the image processing pipeline create a marker at that point. The marker will then be included in the dropdown image list.

2. Select the appropriate function used to combine the two images.

Add Image #1 + Image #2
Subtract Image #1 - Image #2
Multiply Image #1 * Image #2
And Image #1 & Image #2 (binary AND)
Or Image #1 | Image #2 (binary OR)
XOr Image #1 ^ Image #2 (binary XOR)
Maximum if Image #1 > Image #2 then result = Image #1 else result = Image #2
Minimum if Image #1 < Image #2 then result = Image #1 else result = Image #2
Difference | Image #1 - Image #2 | (Absolute value of subtraction)
Divide Image #1 / Image #2
Replace #1 If Image #2 then Image #1 else 0
Replace #2 If Image #2 then Image #1 else 255

3. Select the appropriate channel to perform the function on.

All channels - Performs the operation on each RGB channel
Red, Green, Blue - Performs the operation only on the selected channel. The result is placed in the selected Image #2 channel.

4. Select the appropriate divisor and bias.

Divisor - divides the function's result by the specified amount.
Bias - added to the function's result.


Source Image #1Source Image #2

Image #1 added to Image #2

See Also


 New Post 

Math Related Forum PostsLast postPostsViews
Background Removal
i wanted ignore the surrounding circular area of the mirror using circle module, but i can't to replace the circle blob to sourc...
3 months 3 194
Simulate Long Exposure Time
Hi Steven, Just got the commercial version for work. Wanted to show my boss a simple program where ...
2 years 4 881
Hi all My first post here, and new on the program; I'm trying to figu...
4 years 4 1368
Defect Detection of No. Plate
Hi, I am a new user of RoboRealm. It's really a fantastic software. Currently, I'm trying to use...
4 years 7 1850
Trapezium crop
Hi STeven, Is it possible to crop trapezium shapes? As the area gets smaller due to perspective, i...
5 years 7 1516
Automated Rifle target Scoring
Hi Everyone, I was hoping I could get some ideas thrown around for a project I am working on for a...
6 years 8 8158
math module, merge with read http
Hi, I get my images from the read http module. Whenever I want to merge the result with the origina...
7 years 2 1962
adding differences problem
Hello steven, i downloaded the latest version of RR. i seems to me that the Math module is not working compared with a old (free...
8 years 1 1932
defect detection
hi  i want to know how to find defects in component using robo realm?   that say if i have a watch without a...
8 years 2 2139