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

Draw cross in calibration ROI #12105

Merged
merged 1 commit into from Aug 14, 2023
Merged

Conversation

OhadMeir
Copy link
Contributor

@OhadMeir OhadMeir commented Aug 14, 2023

Drawing a cross in ROI during FL calibration and ground truth calculation.
The target is composed from 4 circles, each should be placed in a different quadrant of the frame. The cross helps setting the target correctly.
ROI cross

@OhadMeir OhadMeir requested a review from Nir-Az August 14, 2023 12:47
@@ -90,6 +90,20 @@ namespace rs2
glVertex2f(r.x, r.y);
glEnd();

if( draw_cross )
{
glLineStipple( 1, 0x0808 );
Copy link
Collaborator

Choose a reason for hiding this comment

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

0x0808 is a color?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it's a bit mask pattern.
The dashed/dotted lines in GL are called stipples, and you can set a 16 bit mask of the "fill" of each line section.
I have tried several options and this looked best.

@Nir-Az
Copy link
Collaborator

Nir-Az commented Aug 14, 2023

Drawing a cross in ROI during FL calibration and ground truth calculation. The target is composed from 4 circles, each should be placed in a different quadrant of the frame. The cross helps setting the target correctly.

Can you add a screenshot in the description?

@OhadMeir
Copy link
Contributor Author

Can you add a screenshot in the description?

Done. Didn't know pictures can be added :-)

@Nir-Az Nir-Az merged commit 84c49ac into IntelRealSense:development Aug 14, 2023
14 of 16 checks passed
OhadMeir pushed a commit to OhadMeir/librealsense that referenced this pull request Sep 6, 2023
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.

None yet

2 participants