added normalize function, need more tests

This commit is contained in:
2020-01-07 13:46:09 +01:00
parent 6d13293ef2
commit cef00ac04e
3 changed files with 68 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
* floatimg.h
*/
#define FIMG_VERSION 85
#define FIMG_VERSION 86
/*
* in memory descriptor
@@ -51,7 +51,7 @@ typedef struct {
int fimg_create(FloatImg *fimg, int w, int h, int t);
int fimg_destroy(FloatImg *fimg);
int fimg_clone(FloatImg *fimg, FloatImg *newpic, int flags);
int fimg_copy_data(FloatImg *from, FloatImg *to);
int fimg_copy_data(FloatImg *from, FloatImg *to);
int fimg_print_version(int k);
void fimg_printhead(FloatImg *h);
@@ -107,6 +107,7 @@ int fimg_meanvalues(FloatImg *head, float means[4]);
int fimg_to_gray(FloatImg *head);
void fimg_add_cste(FloatImg *fi, float value);
void fimg_mul_cste(FloatImg *fi, float value);
int fimg_normalize(FloatImg *fi, double maxima, int notused);
void fimg_drand48(FloatImg *fi, float kmul);
int fimg_count_negativ(FloatImg *fi);