Statistics

Functions

float get_kth_float (float *a, int n, int k)
 Get the kth smallest value in a float array.
cpl_stats * omega_iter_stat (cpl_image *img, double threshold, int iter)
 Compute statistics of an image iteratively.
cpl_stats * omega_iter_stat_opts (cpl_image *img, cpl_vector *zone, double threshold, int iter)
 Compute statistics of an image iteratively.

Detailed Description

This module provides functions to calculate statistics

Synopsis:
Functions to derive statistics
 #include "omega_dfs.h"
 #include "omega_stats.h"
 #include "omega_utils.h"

Function Documentation

float get_kth_float ( float *  a,
int  n,
int  k 
)

Get the kth smallest value in a float array.

Parameters:
a the float array
n the array size
k the requested value position in the sorted array
Returns:
the kth smallest value in the sorted array.

Definition at line 220 of file omega_stats.c.

cpl_stats* omega_iter_stat ( cpl_image *  img,
double  threshold,
int  iter 
)

Compute statistics of an image iteratively.

Parameters:
image_in Input image.
threshold The threshold rejecting outlying pixels
iter Maximum number of iterations
Returns:
1 newly allocated image.

Compute various images statistics iteratively until reaching a convergency. Results are all stored into a returned cpl_stats object, that must be deallocated later.

Definition at line 83 of file omega_stats.c.

Referenced by omega_darkcurrent_combine().

cpl_stats* omega_iter_stat_opts ( cpl_image *  img,
cpl_vector *  zone,
double  threshold,
int  iter 
)

Compute statistics of an image iteratively.

Parameters:
image_in Input image.
threshold The threshold rejecting outlying pixels
iter Maximum number of iterations
Returns:
1 newly allocated image.

Compute various images statistics iteratively until reaching a convergency. Results are all stored into a returned stats object, that must be deallocated.

Definition at line 140 of file omega_stats.c.

Referenced by DoStatistics(), and omega_scan_stats().


Generated on 11 Mar 2013 for OMEGA Pipeline Reference Manual by  doxygen 1.6.1