Image Algebra - Input Images

The Image Algebra works with a set of input images to produce a single output image that is a some combination of the inputs.

You can work with any number of input images: to work with more images, click on the add_image_button button until you have the desired number of images in the "Input images" panel.

The picture below shows the "Input images" panel when the user has added two more input images to the set to be processed.

algebra_3_input_images

Notice that when you have more than one input image, the unload icon becomes active, so that you can remove any of the input images if you want to work with fewer than the current number of images. Click on the icon to remove an image from the set.

For each of the input images, set the name of the image to be processed. You can type the folder and file name into the "Folder" and "File" fields, you can click on the open icon and use a file chooser to select an input image, or by pressing the right mouse button and selecting from the menu of recently-used images.

Each input image must be of the same dimensionality (i.e., the same number of slices, and rows and columns within the slice). The Algebra tool works through every pixel in the set of input images, and applies the formula to produce a single output image derived from a combination of the input images.

Variable Names

Algebra tool computes a new output image of the same dimensionality as the input images. Starting in the top left corner of the first slice of the output image, Algebra tool finds the pixel intensity (brightness) value for the same pixel position in each of the input images. The brightness value is then given the variable name given by the Name field in the input images (e.g. algebra_var_name).

By default these names are I1, I2, I3 etc., but you can substitute almost any name you wish. To substitute an new name, type it into the text field. In the formula you refer to the pixel intensity for the input image by the variable name that is entered in the Name field. You may not use variable names that are reserved (for example, the constants pi and e, or built-in function names).

Jim Home