Line | |
---|
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(GLuint subHistoGram[][4]); |
---|
14 | extern void copySubHistogram(Color *colors, GLuint *histogram, GLuint begin, GLuint end, GLuint subHistoGram[][4]); |
---|
15 | extern void printHistogram(GLuint histoGram[][4]); |
---|
16 | extern void plotHistogram(GLuint histoGram[][4]); |
---|
17 | |
---|
18 | extern GLuint **initHistogram(GLuint numTriangles, GLuint numCameras); |
---|
19 | extern void deleteHistogram(GLuint **histogram, GLuint numCameras); |
---|
20 | extern void printFullHistogram(GLuint **histogram, GLuint numCameras, GLuint numTriangles); |
---|
21 | extern void getSWHistogram(GLuint *histogram, GLubyte *pixels); |
---|
22 | extern void getSWHistoByOcclusionQuery(Mesh *mesh, Color *colors, GLuint *histogram); |
---|
23 | |
---|
24 | extern void resetSWHistogram(GLuint *histogram, GLuint numTriangles); |
---|
25 | |
---|
26 | } |
---|
27 | |
---|
28 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.