summaryrefslogtreecommitdiff
path: root/image/image.h
blob: a5446a8766455100e82e9a1f56980191ab388864 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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