-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patherrorfunc.h
40 lines (29 loc) · 846 Bytes
/
errorfunc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __ERRORFUNC_H__
#define __ERRORFUNC_H__
#include <cv.h>
/**
Calculates the error between parameters p and the image.
@param p[] the model and camera parameters
@param image image to match
@see symmetric_difference
@return error
*/
float error_function(float p[], IplImage *image);
/**
Calculates the error from joint angle constraints
@param p the model to calculate the error for
@return error
*/
float angle_error(float *p);
/**
Calculates the area of the symmetric differenct between two
binary images
@param img1 the first image
@param img2 the second image
@return img1 | img2 - img1 & img2
*/
float symmetric_difference(IplImage *img1, IplImage *img2);
void project (IplImage*, float*);
void error_func_set_floor_weight(float);
void error_func_set_angle_weight(float);
#endif