Now this is a cool feature, I think! But please tell me what you all think...
![Smiley :)](https://probesoftware.com/smf/Smileys/default/smiley.gif)
I've just implemented a versatile method for performing image math on images of any type (raw data, quant, etc) in CalcImage. The math can be any simple algebraic equation that contains variables for each image and any constants required. Parentheses are supported, but only the operations of addition, subtraction, multiplication and division.
This new CalcImage version is ready to download now using the PFE Help | Update Probe for EPMA menu...
I think the procedure is pretty straight forward but I will describe the steps:
1. Load into CalcImage the images that you want to perform image math on. These could be arbitrary GRD or PrbImg images loaded using the File | Open GRD File or File | Import PrbImg File menus, or raw data images from a previously calculated CalcImage project file.
If you want to perform image math on quant images from a CalcImage project, after opening the project simply close all open images using the File | Close All Images menu and then click the Project | Open Images From Current Project menu and select the image types that you want to perform image math on, e.g., oxide, atomic percent, end members, etc, etc...
2. Now open the Calculate RGB and Perform Image Math window from the Processing menu.
3. Click the Perform Image Math calculations option and type in the math equation that you want to utilize without the result variable (it is implied) or equal sign. You can use any alphabetic characters, such as A, B or X, Y, Z, etc., etc. For example "(A + B)/C + 50".
4. Now click the Select button and the software will prompt you to click on each image for the indicated equation variable from those images loaded in the main CalcImage window, for each image math variable one at a time. Please wait until the program prompts you for the next image before clicking another image.
5. Now click the Calculate button and voila.
![](https://probesoftware.com/smf/oldpics/i59.tinypic.com/1492f4w.jpg)
The calculated pixel values under the mouse cursor are displayed in the label field underneath the Calculate button.
Please feel free to post your own image math examples, I'm not sure that MgO wt% times Al2O3 wt% means anything significant geologically speaking!