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

Improve handling of metadata in file reader for color correction of frames #189

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

hackermd
Copy link
Collaborator

This PR introduces changes that are intended to improve color management during reading of image frames with the highdicom.io.ImageFileReader.

Instead of raising an exception when the image does not contain an ICC Profile upon construction of the file reader object, the read_frame() method will raise an exception when correct_color is set to True but no ICC Profile is available for color correction in the metadata of the image.

@hackermd hackermd added the bug Something isn't working label Jul 19, 2022
@hackermd hackermd self-assigned this Jul 19, 2022
@hackermd hackermd linked an issue Jul 19, 2022 that may be closed by this pull request
Copy link
Collaborator

@CPBridge CPBridge left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@hackermd hackermd changed the title Improve handling of metadata for color correction Improve handling of metadata in file reader for color correction of frames Jul 20, 2022
@hackermd hackermd merged commit 31ba2a5 into master Jul 20, 2022
@hackermd hackermd deleted the bug/image-file-reader-color-correction branch July 20, 2022 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide always the available metadata
2 participants