Skip to content

ijtools/ijFitPolynomialBackground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fit Background Plugin

An ImageJ Plugin that computes the background of a grayscale image by adjusting a polynomial surface to the values of background pixels. An overview of a typical worflow is presented below.

The RegionFeaturesJ plugin used to compute morphometric features of regions within a 2D label map

Installation

Follow the steps:

  1. Download the latest release, and place it into the "plugins" directory of the current ImageJ/Fiji installation
  2. Restart ImageJ/Fiji
  3. A new menu appears in "Plugins > IJ Tools > Vignetting > Fit Background..."

Dependencies

  • ImageJ
  • JUnit
  • Jama (Java Matrix Library)

Usage

A typical workflow is as follow:

  • Open the image to process

  • duplicate, and apply a threshold method that will select the foreground. Any other binarisation method can be applied. The segmentation does not need to be perfect.

  • Run the "Fit Background..." plugin, and adjust the following options:

    • image is the image to process
    • mask if the binary image corresponding to the foreground
    • max degree is the maximum degree of the polynomial surface. A degree equal to 1 corresponds to fitting a plane. Values of 2 or 3 usually already provide acceptable results.
    • sampling step: when the image is large, it is possible to reduce the number of pixels to consider for computing the fit. The value corresponds to the step between two pixel in each direction (a step value 3 will consider only one pixel in a 3x3 region).

    The result image is an estimation of the background value. It can be later used to normalise the input image, or to apply inpainting to specific regions.

About

Fit a polynomial background to grayscale image

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages