Rolling Ball Radius Subtract Background
In case someone is still looking for rolling ball background correction in python.
Rolling ball radius subtract background. The default radius is 50 pixels. Imagej software has the rolling ball tool in the main menu under process then select subtract background. Larger values will also work unless the background of the image is too uneven. Before using the method in this post read the comments below and also consider the answers of renat and david hoffman.
As a rule of thumb for 8 bit or rgb images it should be at least as large as the radius of the largest object in the image that is not part of the background. This is the plugin that implemented imagej s subtract background command in versions up to 1 39e but with preview added and support for multiprocessor machines when processing stacks. Load the image and process each channel separately. Download rolling ball background java to the plugins folder or subfolder compile and run it using plugins compile and run then restart imagej.
The rolling ball radius is the radius of curvature of the paraboloid. The rolling ball algorithm was inspired by stanley. Param radius radius of the rolling ball creating the background actually a paraboloid of rotation with the same curvature param createbackground whether to create a background not to subtract it. For me the following worked out very well.
Param lightbackground whether the image has a light background.