|
To activate the Image Calculator, click the ´View´->´Image Calculator´ menu item.
The Image Calculator is a dockable pane which you can dock into the main window
right or left side, or undock to get a separate, floating window.
Expressions are evaluated for each pixel separately, and can contain numerical
values, source image references, mathematical operators and functions. Parentheses
can be used to group parts of the expression.
The result image has physical and pixel dimensions identical to the first source
image (typically ´A´). The remaining source images’ physical dimensions are ignored;
they are assumed to match the first source image. If the pixel dimensions differ,
the remaining source images are resampled to match the first source image.
Examples:
|
|
|
|
min(2*A,B)
|
For each pixel, the minimum of 2 times the corresponding pixel in source image
A, and the corresponding pixel in source image B. This example is shown on the
right.
|
|
max(A,200) |
Identical to source image A, except that pixels in A below 200 will be set to
200.
|
|
A^2 |
For each pixel, the square of the corresponding pixel in source image A. | |