32 std::ifstream in(file.c_str());
47 for (std::vector<a_pos2 *>::iterator p =
pos_.begin(); p <
pos_.end(); p++)
50 for (std::vector<a_persp_mes *>::iterator m =
measures_.begin(); m <
measures_.end(); m++)
72 else if (ai<6*np+5*nc)
92 case 0:
return unwarp->
K1()/
sd_K1;
93 case 1:
return unwarp->
K2()/
sd_K2;
94 case 2:
return unwarp->
P1()/
sd_P1;
95 case 3:
return unwarp->
P2()/
sd_P2;
104 int np =
pos_.size();
118 else if (ai<6*np+5*nc)
156 for (
int i = 0; i <
measures_.size(); i++)
162 d += meas->
residual(unwarp,intern,pos);
169 int n_cam,n_pos,n_meas;
170 i >> n_cam >> n_pos >> n_meas;
171 for (
int j = 0; j < n_cam; j++)
180 for (
int j = 0; j < n_pos; j++)
184 l.
pos_.push_back(pos);
186 for (
int j = 0; j < n_meas; j++)
203 for (
int i = 0; i < l.
pos_.size(); i++)
205 for (
int i = 0; i < l.
measures_.size(); i++)
std::istream & operator>>(std::istream &i, a_persp_mes_list &l)
std::ostream & operator<<(std::ostream &o, const a_persp_mes_list &l)
intern calibration matrix
void setX(int ai, double val)
a_persp_mes_list(const std::string name)
double getX(int ai) const
std::vector< a_persp_mes * > measures_
std::vector< a_pos2 * > pos_
std::vector< a_intern * > cam_intern_
std::vector< a_unwarp * > cam_unwarp_
double residual(a_unwarp *, a_intern *, a_pos2 *)