This is an archive of the old MediaWiki-based ImageJ wiki. The current website can be found at

Rolling Ball Background Subtraction

Rolling Ball Background Subtraction (ImageJ)
Author Michael Castle and Janice Keller (Mental Health Research Institute, University of Michigan)
File Rolling_Ball_Background.class
Initial release 22 November 2007
Development status first version
Category Filtering
Website [1]


This plugin tries to correct for uneven illuminated background by using a "rolling ball" algorithm.

A local background value is determined for every pixel by averaging over a very large ball around the pixel. This value is hereafter subtracted from the original image, hopefully removing large spatial variations of the background intensities. The radius should be set to at least the size of the largest object that is not part of the background.

This plugin implements (differently) the same algorithm as the one built-in ImageJ in the Process  › Subtract background menu, but adds a useful Preview capability. Also, to display the background subtracted in a separate (new) window, hold the ALT key when pressing "OK" (Preview must be off).

The rolling-ball algorithm was inspired by Stanley Sternberg's article, "Biomedical Image Processing", IEEE Computer, January 1983.