Calculate Math takes measurements produced by previous modules and performs basic arithmetic operations.
The arithmetic operations available in this module include addition, subtraction, multiplication, and division. The result can be log-transformed or raised to a power and can be used in further calculations if another
CalculateMath module is added to the pipeline.
The module can make its calculations on a per-image basis (for example, multiplying the area occupied by a stain in the image by the total intensity in the image) or on an object-by-object basis (for example, dividing the intensity in the nucleus by the intensity in the cytoplasm for each cell).
Available measurements
- Image measurements: If both input measurements are whole-image measurements, then the result will also be a whole-image measurement.
- Object measurements: Object measurements can be produced in two ways:
- If both input measurements are individual object measurements, then the result will also be an object measurement. In these cases, the measurement will be associated with both objects that were involved in the measurement.
- If one measure is object-based and one image-based, then the result will be an object measurement.
The result of these calculations is a new measurement in the "Math" category.
See also all Measure modules.
Settings:
Name the output measurement
Enter a name for the measurement calculated by this module.
Operation
Choose the arithmetic operation would you like to perform. None is useful if
you simply want to select some of the later options in the module, such as multiplying
or exponentiating your image by a constant.
Select the first operand measurement type
Indicate whether the operand is an image or object measurement.
Select the first operand objects
Choose the objects you want to measure for this operation.
Select the first operand measurement
Enter the category that was used to create the measurement. You
will be prompted to add additional information depending on
the type of measurement that is requested.
Multiply the above operand by
Enter the number by which you would like to multiply the above operand.
Raise the power of above operand by
Enter the power by which you would like to raise the above operand.
Select the second operand measurement type
Indicate whether the operand is an image or object measurement.
Select the second operand objects
Choose the objects you want to measure for this operation.
Select the second operand measurement
Enter the category that was used to create the measurement. You
will be prompted to add additional information depending on
the type of measurement that is requested.
Take log10 of result?
Select Yes if you want the log (base 10) of the result.
Multiply the result by
(Used only for operations other than None)
Enter the number by which you would like to multiply the result.
Raise the power of result by
(Used only for operations other than None)
Enter the power by which you would like to raise the result.
Add to the result
Enter the number you like to add to the result.
Constrain the result to a lower bound?
Select Yes if you want the result to be
constrained to a lower bound.
Enter the lower bound
Enter the lower bound of the result here.
Constrain the result to an upper bound?
Select Yes if you want the result to be
constrained to an upper bound.
Enter the upper bound
Enter the upper bound of the result here.