|
Bsoft
1.9
Bernard's software package
|
Header file for image utilities. More...
Go to the source code of this file.
Functions | |
| Bplot * | img_histogram (Bimage *p, long bins) |
| Calculates the histogram of an image. More... | |
| Bplot * | img_percentiles (Bimage *p) |
| Calculates the percentiles from the histogram of an image. More... | |
| Bplot * | img_fit_gauss_to_histogram (Bimage *p, long bins, long n) |
| Fits a gaussian function to a histogram of an image. More... | |
| Bplot * | img_fit_poisson_to_histogram (Bimage *p, long bins) |
| Fits a poisson function to a histogram of an image. More... | |
Header file for image utilities.
Definition in file img_histogram.h.
Fits a gaussian function to a histogram of an image.
| *p | image (not altered). |
| bins | number of bins in the histogram. |
| n | number of gaussians. |
A histogram of an image is calculated with a given number of bins.
Definition at line 242 of file img_histogram.cpp.
Fits a poisson function to a histogram of an image.
| *p | image (not altered). |
| bins | number of bins in the histogram. |
A histogram of an image is calculated with a given number of bins.
The histogram is fit to the Poisson function:
lambda * exp(-lambda)
f(x) = Amp ---------------------
x!
by first converting it to a linear form:
ln(f(x)) = ln(Amp) + x*ln(lambda) - lambda - lgamma(x+1)
and then using the downhill simplex method to find the solution. Definition at line 414 of file img_histogram.cpp.
Calculates the histogram of an image.
| *p | image (not altered). |
| bins | number of bins in the histogram. |
A histogram of an image is calculated with a given number of bins. Multiple channels are output as successive one-dimensional arrays. The image data is not affected. The statistics for the input image must be correctly calculated. If the postscript file name is given, a postscript plot is produced.
Definition at line 38 of file img_histogram.cpp.
Calculates the percentiles from the histogram of an image.
| *p | image (not altered). |
A histogram of an image is calculated with 10000 bins. The percentiles are calculated from the running sum of the histogram and returned in a plot.
Definition at line 167 of file img_histogram.cpp.