unravel.image_tools.rb module#

Use img_rb from UNRAVEL to perform rolling ball background subtraction on a TIFF file.

Note

  • Radius for rolling ball subtraction should be ~ 1.0 to 2.0 times the size of the features of interest

  • Larger radii will remove more background, but may also remove some of the features of interest

  • Smaller radii will remove less background, but may leave some background noise

Usage:#

img_rb -i input.tif -rb 4 [-o output.tif] [-v]

unravel.image_tools.rb.parse_args()[source]#
unravel.image_tools.rb.load_tif(tif_path)[source]#

Load a single tif file using OpenCV and return ndarray.

unravel.image_tools.rb.rolling_ball_subtraction(img, radius)[source]#

Subtract background from image using a rolling ball algorithm.

unravel.image_tools.rb.save_tif(img, output_path)[source]#

Save an image as a tif file.

unravel.image_tools.rb.main()[source]#