a new function : fimg_desaturate

This commit is contained in:
tonton Th
2020-01-22 18:16:26 +01:00
parent 1b2355f046
commit 57ef940536
2 changed files with 24 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
* floatimg.h
*/
#define FIMG_VERSION 87
#define FIMG_VERSION 88
/*
* in memory descriptor
@@ -57,7 +57,6 @@ int fimg_print_version(int k);
void fimg_printhead(FloatImg *h);
int fimg_describe(FloatImg *head, char *txt);
char *fimg_str_type(int type);
int fimg_fileinfo(char *fname, int *datas);
int fimg_plot_rgb (FloatImg *head, int x, int y, float r, float g, float b);
int fimg_clear(FloatImg *fimg);
int fimg_add_rgb(FloatImg *head, int x, int y, float r, float g, float b);
@@ -91,6 +90,7 @@ int fimg_cos_01(FloatImg *s, FloatImg *d, double maxval);
int fimg_cos_010(FloatImg *s, FloatImg *d, double maxval);
int fimg_mk_gray_from(FloatImg *src, FloatImg*dst, int k);
int fimg_desaturate(FloatImg *src, FloatImg *dst, int k);
/* module funcs/rampes.c */
int fimg_hdeg_a(FloatImg *img, double dcoef);