export planes as 16 bits PGM, firt try

This commit is contained in:
tth
2022-02-28 20:00:20 +01:00
parent 6ffc08188d
commit c17132e969
5 changed files with 116 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
* http://la.buvette.org/photos/cumul
*/
#define FIMG_VERSION 169
#define FIMG_VERSION 170
/*
* in memory descriptor
@@ -154,6 +154,7 @@ int fimg_export_picture(FloatImg *pic, char *fname, int flags);
int fimg_save_as_pnm(FloatImg *head, char *fname, int flags);
int fimg_save_as_pgm(FloatImg *head, char *fname, int flags);
int fimg_load_from_pnm(char *fname, FloatImg *head, int notused);
int fimg_save_plane_as_pgm(FloatImg *psrc, char *fname, char plane);
double fimg_timer_set(int whot);
double fimg_timer_get(int whot);
@@ -222,6 +223,7 @@ int fimg_save_as_exr(FloatImg *src, char *outname, int flags);
/* mathematics operations */
float fimg_get_plane_maxvalue(FloatImg *psrc, char plane);
float fimg_get_maxvalue(FloatImg *head);
int fimg_get_minmax_rgb(FloatImg *head, float mmvals[6]);
int fimg_meanvalues(FloatImg *head, float means[4]);