Skip to content

Enable UV mapping when rotating frames - #13921

Merged
Nir-Az merged 1 commit into
realsenseai:developmentfrom
noacoohen:enable_3d_view_when_rotating_frames
Apr 10, 2025
Merged

Nir-Az merged 1 commit into
realsenseai:developmentfrom
noacoohen:enable_3d_view_when_rotating_frames

Conversation

@noacoohen

Copy link
Copy Markdown
Contributor
  1. cloning profile only once per rotation angle
  2. update intrinsic

Limitation: UV mapping works when both sensors are rotated at the same angle.

@noacoohen noacoohen changed the title Enable UV mapping wh rotating frames Enable UV mapping when rotating frames Apr 9, 2025
@noacoohen
noacoohen requested a review from Nir-Az April 9, 2025 13:15
tgt_intrin.ppx = src_intrin.width - src_intrin.ppx;
tgt_intrin.ppy = src_intrin.height - src_intrin.ppy;
}
else { throw std::invalid_argument( "Unsupported rotation angle" ); }

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If we throw here, we will not update the
_last_rotation_value = value;
and keep throwing on each frame right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, it will happen only if somehow the angle won't be 0/90/-90/180


tgt_intrin.fx = src_intrin.fx;
tgt_intrin.fy = src_intrin.fy;
tgt_intrin.ppx = src_intrin.width - src_intrin.ppx;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do you understand why we need to flip these values?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

According to what we talked with Hila I think this is the intrinsic update we need


// Adjust width and height based on the rotation angle
if( value == 90 || value == -90 ) // 90 or -90 degrees rotation
if( value == 90 )

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Zero rotation works good now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Nir-Az
Nir-Az merged commit 44211f6 into realsenseai:development Apr 10, 2025
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.

2 participants