1 | #ifndef __histogram_h_ |
---|
2 | #define __histogram_h_ |
---|
3 | |
---|
4 | #include "GL/glut.h" |
---|
5 | |
---|
6 | #include "color.h" |
---|
7 | |
---|
8 | #define HISTOGRAM_SIZE 256 // Must be a power of 2 |
---|
9 | |
---|
10 | namespace VMI |
---|
11 | { |
---|
12 | |
---|
13 | extern void getSubHistogram(int subHistoGram[][4]); |
---|
14 | extern void copySubHistogram(Color *colors, int *histogram, int begin, int end, int subHistoGram[][4]); |
---|
15 | extern void printHistogram(int histoGram[][4]); |
---|
16 | extern void plotHistogram(int histoGram[][4]); |
---|
17 | |
---|
18 | extern int **initHistogram(int numTriangles, int numCameras); |
---|
19 | extern void deleteHistogram(int **histogram, int numCameras); |
---|
20 | extern void printFullHistogram(int **histogram, int numCameras, int numTriangles); |
---|
21 | extern void getSWHistogram(int *histogram, GLubyte *pixels); |
---|
22 | extern void getSWHistogramWin(int *histogram, GLubyte *pixels, GLfloat min[3], GLfloat max[3], Change *c); |
---|
23 | extern void getSWHistoByOcclusionQuery(Mesh *mesh, Color *colors, int *histogram); |
---|
24 | |
---|
25 | extern void resetSWHistogram(int *histogram, int numTriangles); |
---|
26 | extern void getBoundingBox(Change *c, GLfloat min[3], GLfloat max[3]); |
---|
27 | extern void getWindow(GLfloat min[3], GLfloat max[3], int minw[2], int maxw[2]); |
---|
28 | } |
---|
29 | |
---|
30 | #endif |
---|