Calculator¶
Tools -> Calculator
The built in Calculator can perform simple calculations on image data by entering the desired formula into the Formula text box. For types of supported input and examples see Supported Formula inputs with examples. and for supported functions see Calculator functions.. These functions are also available for insert via the Functions combo box.
Clicking apply will create a new image with the name given in Name, if the name already exists then the image data will be overwritten. Non image results (e.g. the mean of an image) are displayed in the Results text box.
Supported Input¶
Type |
Example |
|---|---|
Image names |
|
Mathematical Symbols |
|
If / then / else |
|
Functions |
|
Supported Functions¶
Function |
Arguments |
Result |
|---|---|---|
abs |
image |
absolute values of image |
kmeans |
image, k |
array of lower k-means bounds |
mask |
image, mask |
selects from image using mask |
mean |
image |
mean value of the image |
median |
image |
median value of the image |
nantonum |
image |
sets image NaN values to zero |
normalise |
image, min, max |
image normalised to min, max |
otsu |
image |
Otsu’s method of image |
percentile |
image, percentile |
the percentile’th value of image |
segment |
image, threshold |
creates a mask image of thesholds |
threshold |
image, value |
sets all pxiels below value to nan |