source: GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/vmi/include/histogram.h @ 2090

Revision 2090, 1.1 KB checked in by gumbau, 17 years ago (diff)
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
10namespace       VMI
11{
12
13extern void getSubHistogram(GLuint subHistoGram[][4]);
14extern void copySubHistogram(Color *colors, GLuint *histogram, GLuint begin, GLuint end, GLuint subHistoGram[][4]);
15extern void printHistogram(GLuint histoGram[][4]);
16extern void plotHistogram(GLuint histoGram[][4]);
17
18extern GLuint **initHistogram(GLuint numTriangles, GLuint numCameras);
19extern void deleteHistogram(GLuint **histogram, GLuint numCameras);
20extern void printFullHistogram(GLuint **histogram, GLuint numCameras, GLuint numTriangles);
21extern void getSWHistogram(GLuint *histogram, GLubyte *pixels);
22extern void getSWHistogramWin(GLuint *histogram, GLubyte *pixels, GLfloat min[3], GLfloat max[3], Change *c);
23extern void getSWHistoByOcclusionQuery(Mesh *mesh, Color *colors, GLuint *histogram);
24
25extern void resetSWHistogram(GLuint *histogram, GLuint numTriangles);
26extern void getBoundingBox(Change *c, GLfloat min[3], GLfloat max[3]);
27extern void getWindow(GLfloat min[3], GLfloat max[3], int minw[2], int maxw[2]);
28}
29
30#endif
Note: See TracBrowser for help on using the repository browser.