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

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