|
Bsoft
1.9
Bernard's software package
|
Function to normalize a set of images based on their histograms. More...
#include "rwimg.h"Go to the source code of this file.
Functions | |
| int | img_mass_normalize (Bimage *p, float avg, float std, int norm_type) |
| Normalizes a set of images to a desired average and standard deviation. More... | |
Function to normalize a set of images based on their histograms.
Definition in file img_norm.h.
| int img_mass_normalize | ( | Bimage * | p, |
| float | avg, | ||
| float | std, | ||
| int | norm_type | ||
| ) |
Normalizes a set of images to a desired average and standard deviation.
| *p | image (not altered). |
| avg | desired average. |
| std | desired standard deviation (if 0, use defaults). |
| norm_type | type of determining the effective average and standard deviation: 0=simple, 1=Gaussian, 2=Poisson. |
The effective average and standard deviation for each image is obtained
in one of three ways:
0. The simple avergae and standard devaition for the image.
1. Gaussian fit of the histogram.
2. Poisson fit of the histogram.
A histogram of an image is calculated with a given number of bins.
The histogram is fit to a Gaussian or Poisson function with exclusion of a
small number of bins in the histogram (defined as outliers).
The effective average and standard deviation are used to
rescale the data for each image. Definition at line 42 of file img_norm.cpp.