Skip to content

Create test-texture-mapping.py - #14099

Merged
Nir-Az merged 3 commits into
realsenseai:developmentfrom
Noy-Zini:texture-mapping-image-quality-test
Aug 13, 2025
Merged

Create test-texture-mapping.py#14099
Nir-Az merged 3 commits into
realsenseai:developmentfrom
Noy-Zini:texture-mapping-image-quality-test

Conversation

@Noy-Zini

Copy link
Copy Markdown
Contributor

tracked on : LRS-1289

@Noy-Zini
Noy-Zini force-pushed the texture-mapping-image-quality-test branch from bacfb92 to 7df621b Compare June 24, 2025 15:21
@Noy-Zini
Noy-Zini requested a review from Nir-Az June 24, 2025 15:26
for name, ((x, y), expected_rgb) in expected_mappings.items():
depth = depth_frame.get_distance(x, y)
if depth == 0:
log.w(f"Frame {frame_index} - {name}: No depth at ({x},{y})")

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.

We can skip that IMO,
We do not have 100% fill rate on most scenes


# Texture mapping:
# Deproject (x, y) + depth to 3D point in depth camera space
depth_point = rs.rs2_deproject_pixel_to_point(depth_intr, [x, y], depth)

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.

I think you implemented what is already implemented inside the SDK.
We already have an alignment and texture mapping API
See here: https://github.com/IntelRealSense/librealsense/blob/development/examples/align/rs-align.cpp

@Nir-Az

Nir-Az commented Jul 15, 2025

Copy link
Copy Markdown
Collaborator

Please add a "donotrun" label so we can merge it

@Nir-Az
Nir-Az merged commit 26f372d into realsenseai:development Aug 13, 2025
24 of 26 checks passed
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