adding bare FITS file support

This commit is contained in:
2020-07-24 10:38:13 +02:00
parent 4e90a400e7
commit 3849485c02
6 changed files with 116 additions and 16 deletions

View File

@@ -3,7 +3,7 @@
* ugly code from tTh
*/
#define FIMG_VERSION 102
#define FIMG_VERSION 103
/*
* in memory descriptor
@@ -39,6 +39,7 @@ typedef struct {
#define FILE_TYPE_PNG 3
#define FILE_TYPE_TGA 4
#define FILE_TYPE_TIFF 5
#define FILE_TYPE_FITS 6
/* lib/contrast.c */
#define CONTRAST_NONE 0
@@ -121,7 +122,6 @@ int fimg_cos_010(FloatImg *s, FloatImg *d, double maxval);
/* module funcs/geometry.c */
int fimg_equalize_compute(FloatImg *src, void *vptr);
int fimg_mk_gray_from(FloatImg *src, FloatImg*dst, int k);
int fimg_desaturate(FloatImg *src, FloatImg *dst, int k);
@@ -138,6 +138,9 @@ int fimg_dump_to_file(FloatImg *head, char *fname, int notused);
int fimg_load_from_dump(char *fname, FloatImg *where);
int fimg_create_from_dump(char *fname, FloatImg *head);
int fimg_save_R_as_fits(FloatImg *src, char *outname, int flags);
/* mathematics operations */
float fimg_get_maxvalue(FloatImg *head);
int fimg_get_minmax_rgb(FloatImg *head, float mmvals[6]);