StrataQuest Home StrataQuest Glossary Arithmetic image operations
Image Processing & Correction

Arithmetic image operations

Eighteen engines, one calculator — change the operator, change the meaning

Definition
Arithmetic image operations are per-pixel math applied to one or two input images, producing an output image of the same shape. Each operation is a specific function: addition (image + image, image + scalar, weighted sum of two images), subtraction (image − image, image − scalar), multiplication and division in the same forms (with RGB-aware variants for color images), complement (255 − image for 8-bit, equivalent for higher bit depths), powers and roots (Square, Square root), polynomials (a + b · image^c), and the transcendental pair Exponential and Logarithm. They run in the Pre-Processing slotLoading... for the most part — reshaping intensity before a selective method like thresholdingLoading... or OtsuLoading... acts on the result.
Supporting
User Interface - Image Viewer + Toolbar
Video · Supporting
Dynamic range - 16bit to 8bit normalization
Video · Supporting
One pattern, eighteen forms
Same per-pixel computation, different math
What arithmetic changes about an image
Brightness, contrast, ratio, dynamic range
Watch out for the dynamic range
Outputs can exceed the input bit depth
RGB variants apply per-channel
Three computations and a recombine

Where arithmetic earns its place — common uses

Arithmetic operations rarely show up because someone wants arithmetic. They show up because reshaping intensity is the move that lets the next step in the chain work cleanly. A few representative cases:

Flat-field correction. An illumination gradient across the field shifts the apparent intensity of identical biology in different positions. Acquire (or estimate) a background-only reference image; subtract it from the sample. Per-position bias removed; a single threshold now reads the same biology consistently across the field.

Ratiometric measurements. Two channels imaged of the same field, where the ratio carries the biological signal (a calcium indicator, a FRET donor/acceptor pair, a pH-sensitive dye). Divide images produces a per-pixel ratio map; the result is a quantitative readout of the property the ratio encodes — independent of absolute intensity, which is often the point.

Dynamic-range compression. Microscopy images often span four orders of magnitude in intensity from dim cytoplasm to bright nuclei. Linear thresholdsLoading... struggle with this range. Logarithm compresses the high end and expands the low end; the post-log image presents dim and bright on a more comparable footing, and a single threshold can address both.

Difference imaging. Two acquisitions of the same field at different time points; subtract images highlights what changed. The subtraction makes the static structure cancel; the dynamic structure surfaces.

Inversion for downstream methods that expect bright foreground. Some detection engines assume foreground is bright. For images where the foreground is dark (transmitted light brightfield, certain stains), complement swaps the convention without altering relative intensity differences.

Channel weighting and composition. Add weighted images combines two channels with chosen weights — useful for synthesizing a composite signal, computing a derived channel from a linear combination, or building a single-channel projection from multi-channel data.

Share This Term
Term Connections