Skip to content

How do you get the center position in estimateHomography() of Quad.cpp? #14

Description

@DavidLeeDoosan

Hello, I deeply study your S-tag program.

I have a question. May I ask you some about making the center position of the mark?

// product of these transformations is the homography
H = HarInv * Haffsim;

// locate the projection of the center of the marker
Mat origCenter(3, 1, CV_64FC1);
origCenter.at<double>(0) = 0.5;
origCenter.at<double>(1) = 0.5;
origCenter.at<double>(2) = 1;

origCenter = H * origCenter;
center.x = origCenter.at<double>(0) / origCenter.at<double>(2);
center.y = origCenter.at<double>(1) / origCenter.at<double>(2);

Why do you divide "origCenter.at(2) " from each x, y Coordinator?

In addition, can I get Z Coordinator of the mark center in the camera pose if I take hand-eye calibration?

is it possible?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions