1 | #ifndef __metrics_h_ |
---|
2 | #define __metrics_h_ |
---|
3 | |
---|
4 | #include "GL/glut.h" |
---|
5 | |
---|
6 | #include "change.h" |
---|
7 | |
---|
8 | namespace VMI |
---|
9 | { |
---|
10 | extern GLdouble computeMI(Mesh *mesh, GLuint **histogram, GLuint numCameras, GLuint cam); |
---|
11 | extern GLdouble decMI(GLdouble I, GLuint **histogram, GLuint numCameras, GLuint cam, Change *c); |
---|
12 | extern GLdouble incMI(GLdouble I, GLuint **histogram, GLuint numCameras, GLuint cam, Change *c); |
---|
13 | |
---|
14 | extern GLdouble computeHE(Mesh *mesh, GLuint *histogram); |
---|
15 | extern GLdouble computeKL(Mesh *mesh, GLuint *histogram); |
---|
16 | extern GLdouble computeCS(Mesh *mesh, GLuint *histogram); |
---|
17 | |
---|
18 | extern GLdouble computeMeanProjArea(GLuint **histogram, GLuint numCameras, int t); |
---|
19 | extern GLdouble computeJS(GLuint **histogram, GLuint numCameras, GLuint j, GLuint k); |
---|
20 | extern GLdouble computeEntropy(GLuint **histogram, GLuint numCameras, GLuint k); |
---|
21 | extern GLdouble computeMixedEntropy(GLdouble *mixed, GLuint numCameras); |
---|
22 | extern GLdouble computeMeanProjAreaNoBG(GLuint **histogram, GLuint numCameras, int t); |
---|
23 | |
---|
24 | extern void getProjectedAreas(GLuint **histogram, GLuint numCameras); |
---|
25 | extern void getProjectedAreasWin(GLuint **histogram, GLuint numCameras, Change *c); |
---|
26 | extern void resetProjectedAreas(GLuint **histogram, GLuint numCameras); |
---|
27 | |
---|
28 | extern GLdouble *initIs(GLuint numCameras); |
---|
29 | extern void computeCameraIs(GLuint **histogram, GLuint numCameras, GLdouble *mis); |
---|
30 | extern void printIs(GLdouble *mis, GLuint numCameras); |
---|
31 | } |
---|
32 | #endif |
---|