Functions

balance_lib.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned char * balance_u8 (unsigned char *data, size_t size, size_t nb_min, size_t nb_max)
 normalize an unsigned char array
float * balance_f32 (float *data, size_t size, size_t nb_min, size_t nb_max)
 normalize a float array
float * idiv_f32 (float *a, const float *b, size_t size)
float * imul_f32 (float *a, const float *b, size_t size)
float * imuls_f32 (float *a, const float b, size_t size)
float * iadd_f32 (float *a, const float *b, size_t size)

Function Documentation

float* balance_f32 ( float *  data,
size_t  size,
size_t  nb_min,
size_t  nb_max 
)

normalize a float array

This function operates in-place. It computes the minimum and maximum values of the data, and rescales the data to [0-1], with optionally flattening some extremal pixels.

Parameters:
data input/output array
size array size
nb_min,nb_max number extremal pixels flattened
Returns:
data

Definition at line 342 of file balance_lib.c.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned char* balance_u8 ( unsigned char *  data,
size_t  size,
size_t  nb_min,
size_t  nb_max 
)

normalize an unsigned char array

This function operates in-place. It computes the minimum and maximum values of the data, and rescales the data to [0-UCHAR_MAX], with optionally flattening some extremal pixels.

Parameters:
data input/output array
size array size
nb_min,nb_max number extremal pixels flattened
Returns:
data

Definition at line 300 of file balance_lib.c.

Here is the call graph for this function:

Here is the caller graph for this function:

float* iadd_f32 ( float *  a,
const float *  b,
size_t  size 
)
float* idiv_f32 ( float *  a,
const float *  b,
size_t  size 
)
float* imul_f32 ( float *  a,
const float *  b,
size_t  size 
)
float* imuls_f32 ( float *  a,
const float  b,
size_t  size 
)
 All Files Functions Variables Defines