From 8f776e61b2650486873516f903cb199e321e10f5 Mon Sep 17 00:00:00 2001 From: Soikk Date: Mon, 5 Sep 2022 14:31:44 +0200 Subject: Initial commit --- image/image.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 image/image.h (limited to 'image/image.h') diff --git a/image/image.h b/image/image.h new file mode 100644 index 0000000..a5446a8 --- /dev/null +++ b/image/image.h @@ -0,0 +1,25 @@ +#pragma once +#ifndef IMAGE_H +#define IMAGE_H + +#define __MINGW_FEATURES__ 1 + +#include +#include "../../matrix/matrix.h" + +#define MNIST_SIZE 784 +#define MAXCHARS 10000 + + +typedef struct image{ + int label; + matrix *img; +} image; + +image *loadCSV(FILE *fp); + +void freeImage(image **im); + +void printImage(image *im); + +#endif -- cgit v1.2.3