Skip to content

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

Merged
fabiencastan merged 5 commits into
developfrom
mug/fixSyncCamView
Feb 14, 2023
Merged

[ui] fix "Sync Camera with Image Selection"#1888
fabiencastan merged 5 commits into
developfrom
mug/fixSyncCamView

Conversation

@mugulmd

@mugulmd mugulmd commented Feb 1, 2023

Copy link
Copy Markdown
Contributor

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

@cbentejac cbentejac left a comment

Copy link
Copy Markdown
Contributor

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