1 #ifndef _CAMAUGMENTATION_H
2 #define _CAMAUGMENTATION_H
59 void AddHomography( std::vector<CamCalibration::s_struct_points> p, CvMat* ready );
130 struct s_struct_optimal {
131 std::vector<int> v_camera_width;
132 std::vector<int> v_camera_height;
133 std::vector<CvMat*> v_camera_c;
134 std::vector<CvMat*> v_camera_r_t;
135 std::vector<CvMat*> v_camera_r_t_jacobian;
145 s_struct_optimal s_optimal;
155 struct s_struct_homography {
156 std::vector<CamCalibration::s_struct_points> v_point;
159 s_struct_homography(){
162 ~s_struct_homography(){
175 std::vector<s_struct_homography*> v_homography;
184 CvMat* v_homography_r_t;
191 CvMat* v_homography_r_t_jacobian;
201 std::vector<double> v_opt_param;
211 bool EstimateHomographyRT();
218 CvMat* InverseCalibrationMatrix( CvMat *in );
227 bool CreateHomographyRotationTranslationMatrix(
int c );
235 bool OptimizeCurrentView(
int iter,
double eps );
240 int GetObservationNumber();
245 void GetParameterSet();
250 void SetParameterSet();
257 static void updateCB(
double *params,
void **user_data);
279 void ReleaseOptimalCameraStructure();