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

Revision 2090, 1.4 KB checked in by gumbau, 17 years ago (diff)
Line 
1#ifndef __metrics_h_
2#define __metrics_h_
3
4#include "GL/glut.h"
5
6#include "change.h"
7
8namespace       VMI
9{
10extern GLdouble computeMI(Mesh *mesh, GLuint **histogram, GLuint numCameras, GLuint cam);
11extern GLdouble decMI(GLdouble I, GLuint **histogram, GLuint numCameras, GLuint cam, Change *c);
12extern GLdouble incMI(GLdouble I, GLuint **histogram, GLuint numCameras, GLuint cam, Change *c);
13
14extern GLdouble computeHE(Mesh *mesh, GLuint *histogram);
15extern GLdouble computeKL(Mesh *mesh, GLuint *histogram);
16extern GLdouble computeCS(Mesh *mesh, GLuint *histogram);
17
18extern GLdouble computeMeanProjArea(GLuint **histogram, GLuint numCameras, int t);
19extern GLdouble computeJS(GLuint **histogram, GLuint numCameras, GLuint j, GLuint k);
20extern GLdouble computeEntropy(GLuint **histogram, GLuint numCameras, GLuint k);
21extern GLdouble computeMixedEntropy(GLdouble *mixed, GLuint numCameras);
22extern GLdouble computeMeanProjAreaNoBG(GLuint **histogram, GLuint numCameras, int t);
23
24extern void getProjectedAreas(GLuint **histogram, GLuint numCameras);
25extern void getProjectedAreasWin(GLuint **histogram, GLuint numCameras, Change *c);
26extern void resetProjectedAreas(GLuint **histogram, GLuint numCameras);
27
28extern GLdouble *initIs(GLuint numCameras);
29extern void computeCameraIs(GLuint **histogram, GLuint numCameras, GLdouble *mis);
30extern void printIs(GLdouble *mis, GLuint numCameras);
31}
32#endif
Note: See TracBrowser for help on using the repository browser.