Skip to content
New issue

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

[ui] fix "Sync Camera with Image Selection" #1888

Merged
merged 5 commits into from
Feb 14, 2023
Merged

Conversation

mugulmd
Copy link
Contributor

@mugulmd mugulmd commented Feb 1, 2023

Description

This PR fixes the "Sync Camera with Image Selection" feature in the 3D viewer.

Features

  • use the correct formulas for the camera rotation and translation
  • apply exif orientation tag of input image to 3D viewer in order to match 2D viewer.

Implementation remarks

The image used as overlay is not exactly the input image but its undistorted version computed by the PrepareDenseScene node. This means that if the PrepareDenseScene node has not been computed or does not exist (for example in a CameraTracking pipeline), there won't be a background image.
A more robust solution should be imagined for handling such cases.

@mugulmd mugulmd marked this pull request as ready for review February 6, 2023 16:47
Copy link
Contributor

@cbentejac cbentejac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on images with orientation 1 and 6, and everything seemed to work well!

@fabiencastan fabiencastan added this to the Meshroom 2023.1.0 milestone Feb 14, 2023
@fabiencastan fabiencastan merged commit ac27d14 into develop Feb 14, 2023
@fabiencastan fabiencastan deleted the mug/fixSyncCamView branch February 14, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants