Rev | Line | |
---|
[983] | 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 | |
---|
[2090] | 10 | namespace VMI |
---|
[983] | 11 | { |
---|
| 12 | |
---|
[2127] | 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]); |
---|
[983] | 17 | |
---|
[2127] | 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); |
---|
[983] | 24 | |
---|
[2127] | 25 | extern void resetSWHistogram(int *histogram, int numTriangles); |
---|
[2090] | 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]); |
---|
[983] | 28 | } |
---|
| 29 | |
---|
| 30 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.