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.
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.
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 | |
|
) |
| | |