We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void OCAMCamera::liftProjective(const Eigen::Vector2d& p, Eigen::Vector3d& P) const { // Relative to Center Eigen::Vector2d xc(p[0] - mParameters.center_x(), p[1] - mParameters.center_y());
// Affine Transformation // xc_a = inv(A) * xc; Eigen::Vector2d xc_a( m_inv_scale * (xc[0] - mParameters.D() * xc[1]), m_inv_scale * (-mParameters.E() * xc[0] + mParameters.C() * xc[1]) ); double phi = std::sqrt(xc_a[0] * xc_a[0] + xc_a[1] * xc_a[1]); double phi_i = 1.0; double z = 0.0; for (int i = 0; i < SCARAMUZZA_POLY_SIZE; i++) { z += phi_i * mParameters.poly(i); phi_i *= phi; } P << xc[0], xc[1], -z;
}
why return xc[0], xc[1], -z I think maybe is xc_a[0], xc_a[1], -z
The text was updated successfully, but these errors were encountered:
i think you r right
Sorry, something went wrong.
No branches or pull requests
void
OCAMCamera::liftProjective(const Eigen::Vector2d& p, Eigen::Vector3d& P) const
{
// Relative to Center
Eigen::Vector2d xc(p[0] - mParameters.center_x(), p[1] - mParameters.center_y());
}
why return xc[0], xc[1], -z
I think maybe is xc_a[0], xc_a[1], -z
The text was updated successfully, but these errors were encountered: