OMEGA Pipeline Reference Manual  1.0.6
Functions
Statistics

Functions

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

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
athe float array
nthe array size
kthe 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_inInput image.
thresholdThe threshold rejecting outlying pixels
iterMaximum 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_inInput image.
thresholdThe threshold rejecting outlying pixels
iterMaximum 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().