Skip to content

Rolling Ball

The Rolling Ball command removes uneven background illumination. A virtual ball or paraboloid rolls beneath the image surface; the computed local background is subtracted from the original image, leaving only the foreground signal.

Picture the image as a 3D landscape where pixel intensity is height. A ball too big to fit inside the sharp peaks (your actual objects) rolls along underneath them, tracing out only the slow, sweeping curves of the background illumination - which is exactly the baseline that gets subtracted.

The rolling-ball baseline traces the slow background curve, leaving the sharp signal peaks alone

Use Rolling Ball as the first preprocessing step when images have uneven or sloped background intensity - common in widefield fluorescence microscopy.

ParameterDescription
RadiusRadius of the rolling ball in pixels
Ball typeShape of the virtual probe: Ball (spherical cap) or Paraboloid
Pre-smoothApply a light Gaussian blur before background estimation to reduce sensitivity to noise
TypeBehaviour
BallTraditional ImageJ algorithm. Best for images with distinct, round objects.
ParaboloidSmoother at the edges; fewer artefacts on complex gradients. Recommended for most microscopy images.

The algorithm was originally described by Stanley R. Sternberg, “Biomedical Image Processing,” IEEE Computer, vol. 16, no. 1, pp. 22-34, January 1983, and ported from the ImageJ/NIH Image Pascal implementation.