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

CalibrateDisplayShape visualization improvements #192

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

braden6521
Copy link
Collaborator

@braden6521 braden6521 commented Dec 6, 2024

Purpose

Improved the visualizations in ClaibrateDisplayShape. This makes debugging of Sofast calibrations easier. In some cases, fixed bugs in the way plots were displayed.

Summary of changes

  • Added an unwrapped phase visualization output.
  • Changed color of plotted alignment points on the "Annotated_Camera_x_Images" plots. Blue for points used in camera alignment, black for points whose location is calculated, but not used in the camera alignment step.
  • Added the ray intersection threshold to the ray intersection error plot.
  • Flipped the previously incorrect direction of the axes in the "Screen_Map_X/Y/Z" plots.

Implementation notes

No study has been performed to completely verify correctness of this function. We are using previous calculations as ground truth for now. These changes don't affect functionality but rather improve users' ability to debug bad inputs.

Submission checklist

  • Target branch is develop, not main
  • Existing tests are updated or new tests were added
  • opencsp/test/test_DocStringsExist.py are verified to include this change or have been updated accordingly
  • .rst file(s) under doc/ are verified to include this change or have been updated accordingly

Additional information

None

Copy link
Collaborator

@bbean23 bbean23 left a comment

Choose a reason for hiding this comment

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

Approved!

im_y = np.stack([im_y] * 3, axis=2)

# Add active pixels as colored pixels
cm = colormaps.get_cmap('jet')
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not saying that you need to use this here, I just wanted to let you know about this method:

https://github.com/sandialabs/OpenCSP/blob/develop/opencsp/common/lib/render/Color.py#L212

@e10harvey e10harvey merged commit 570398f into sandialabs:develop Dec 12, 2024
4 checks passed
@braden6521 braden6521 deleted the calibrate_display_debug branch December 13, 2024 20:38
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