summaryrefslogtreecommitdiff
path: root/image/image.h
diff options
context:
space:
mode:
authorSoikk2022-09-05 14:31:44 +0200
committerSoikk2022-09-05 14:31:44 +0200
commit8f776e61b2650486873516f903cb199e321e10f5 (patch)
tree8861c2b375abb45ea0752debd46d8e79e29d7152 /image/image.h
downloadsoikk-neural-net-8f776e61b2650486873516f903cb199e321e10f5.tar.xz
soikk-neural-net-8f776e61b2650486873516f903cb199e321e10f5.tar.zst
Initial commit
Diffstat (limited to 'image/image.h')
-rw-r--r--image/image.h25
1 files changed, 25 insertions, 0 deletions
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 <string.h>
+#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