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.
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 whencorrect_color
is set toTrue
but no ICC Profile is available for color correction in the metadata of the image.