M2_SETI/A4/TP_A4/exo4_opti/image_io.h
2023-02-12 23:49:07 +01:00

11 lines
513 B
C

#ifndef IMAGE_IO_H
#define IMAGE_IO_H
void read_image(char *name, double **image, int *im_width, int *im_height);
void read_imagef(char *name, float **image, int *im_width, int *im_height);
void read_imagec(char *name, unsigned char **image, int *im_width, int *im_height);
void write_image(char *name, double *image, int im_width, int im_height);
void write_imagef(char *name, float *image, int im_width, int im_height);
void write_imagec(char *name, unsigned char *image, int im_width, int im_height);
#endif