-
Notifications
You must be signed in to change notification settings - Fork 3
/
cimage.h
46 lines (31 loc) · 1.12 KB
/
cimage.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
#ifndef CIMAGE_H
#define CIMAGE_H
#include "abstractimage.h"
#include "image.h"
class CImage :public AbstractImage
{
private:
float *rgb[3];
public:
CImage(const int width, const int height);
CImage(const int width, const int height, const unsigned int InitVal);
CImage(const int width, const int height, const float *new_data);
CImage(const char * filename);
~CImage();
void setPixelR(const int x, const int y, const float val);
void setPixelG(const int x, const int y, const float val);
void setPixelB(const int x, const int y, const float val);
void setPixel(const int x,const int y,const float*color);
void getPixel(const int x,const int y,float* RGB);
void getPixelBI(float col,float row,float *RGB);
void get2DConVal(const int x,const int y,float pixel[],vector<float> &kern);
Image *getGrayImage();
CImage *getBlueImage();
bool RGBtoLUV();
void getPixelLUV(const int x,const int y, float *LUV);
static CImage *doubleSizeImage(CImage *srcImg);
static CImage *halfSizeImage(CImage *srcImg);
CImage *clone();
static void test();
};
#endif