Skip to content

Commit

Permalink
Properly set Pixel Presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
malaterre committed Sep 13, 2021
1 parent d854801 commit c21d021
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/highdicom/legacy/sop.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ def _convert_legacy_to_enhanced(
unique_image_types.add(tuple(frame_type))
frame_type_item = Dataset()
frame_type_item.FrameType = frame_type
frame_type_item.PixelRepresentation = pixel_representation
if pixel_representation == 0:
frame_type_item.PixelPresentation = 'MONOCHROME'
else:
frame_type_item.PixelPresentation = 'COLOR'
frame_type_item.VolumetricProperties = volumetric_properties
if frame_type[0] == 'ORIGINAL':
frame_type_item.VolumeBasedCalculationTechnique = 'NONE'
Expand Down

0 comments on commit c21d021

Please sign in to comment.