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, int **histogram, int numCameras, int cam); |
---|
11 | extern GLdouble decMI(GLdouble I, int **histogram, int numCameras, int cam, Change *c); |
---|
12 | extern GLdouble incMI(GLdouble I, int **histogram, int numCameras, int cam, Change *c); |
---|
13 | |
---|
14 | extern GLdouble computeHE(Mesh *mesh, int *histogram); |
---|
15 | extern GLdouble computeKL(Mesh *mesh, int *histogram); |
---|
16 | extern GLdouble computeCS(Mesh *mesh, int *histogram); |
---|
17 | |
---|
18 | extern GLdouble computeMeanProjArea(int **histogram, int numCameras, int t); |
---|
19 | extern GLdouble computeJS(int **histogram, int numCameras, int j, int k); |
---|
20 | extern GLdouble computeEntropy(int **histogram, int numCameras, int k); |
---|
21 | extern GLdouble computeMixedEntropy(GLdouble *mixed, int numCameras); |
---|
22 | extern GLdouble computeMeanProjAreaNoBG(int **histogram, int numCameras, int t); |
---|
23 | |
---|
24 | extern GLdouble *initIs(int numCameras); |
---|
25 | extern void computeCameraIs(int **histogram, int numCameras, GLdouble *mis); |
---|
26 | extern void printIs(GLdouble *mis, int numCameras); |
---|
27 | } |
---|
28 | #endif |
---|