Skip to content
Alex Halavanau edited this page Sep 7, 2018 · 6 revisions

ImageStat (alpha)

Image analysis

The image is first analyzed by a consecutive application of elliptical masks of increasing area. When the second moments' derivatives are minimized, the code will determine optimal mask sizes and perform a final calculation. The method proved to be effective even on noisy images (without background subtraction), however, the user will have to adjust the step and mask sizes. The main signal has to be close to uniform or Gaussian; when significant segmentation is present, one has to adjust the initial mask size. Default parameters fit mostly clean Gaussian images with minor noise and segmentation.

Usage

python image.py

If need, adjust the parameters in parameters.py

Method

Let our image be defined as (a contribution of a "clean" function plus a noise term):

,

where f(x,y) is a Gaussian function:

Then, the second order statistical moment in x is calculated as:

.

Now consider a derivative:

When a is large enough,

, therefore the condition

minimizes the noise contribution

Clone this wiki locally