-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathImageIO.h
52 lines (46 loc) · 1.05 KB
/
ImageIO.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// ImageIO.h
// Resolution
//
// Created by Tabitha Peck on 7/23/13.
// Copyright (c) 2013 Tabitha Peck. All rights reserved.
//
#ifndef __Resolution__ImageIO__
#define __Resolution__ImageIO__
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include "Filter.h"
#define GLUT_DISABLE_ATEXIT_HACK
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <glut.h>
#endif
using namespace std;
class ImageIO{
public:
ImageIO(int w, int h, int max);
ImageIO(const char* file_name);
~ImageIO(void);
void writeImage(const char* file_name);
int getWidth();
int getHeight();
float*** getImage();
float* getImageDisplayArray();
ImageIO* removeRed();
ImageIO* grayScale();
/* function definition for edge detection*/
ImageIO* edgeDetection();
/* function definition for image sharpening */
ImageIO* sharpenFilter();
//ImageIO* blur(Filter* f);
private:
char magic_number[2];
int width;
int height;
int max;
float*** image;
float* imageDisplayArray;
};
#endif /* defined(__Resolution__ImageIO__) */