Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

intrinsics K in FundamentalFromMotionAndCameras. #124

Closed

Description

@zhan994

I'm working on the two_view_geometry. I found some code here in fuction FundamentalFromMotionAndCameras.

void FundamentalFromMotionAndCameras(const Camera& camera1,
                                     const Camera& camera2,
                                     const Rigid3d& pose,
                                     Eigen::Matrix3d* F) {
  Eigen::Matrix3d E;
  EssentialFromMotion(pose, &E);
  *F = camera1.GetK().transpose().inverse() * E * camera2.GetK().inverse();
}

In this function, parameter pose means T_cam2_from_cam1.
Should the FundmentalMatrix be *F = camera2.GetK().transpose().inverse() * E * camera1.GetK().inverse();,
rather than *F = camera1.GetK().transpose().inverse() * E * camera2.GetK().inverse();?

Activity

  1. zhan994 commented on Oct 18, 2024

    @zhan994
    ContributorAuthor

    I've made a pull request here: #125 (comment)

  2. lionlai1989 commented on Oct 18, 2024

    @lionlai1989

    I think how FundamentalFromMotionAndCameras is used matters.
    The caller looks like:

          FundamentalFromMotionAndCameras(
              camera1, camera2, image_pair.cam2_from_cam1, &image_pair.F);
        }

    Base on my understanding of essential and fundamental matrix, it looks like a bug indeed.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions