Skip to content

Commit

Permalink
minor bugfix for RGB images
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Apr 25, 2024
1 parent 0250384 commit bdcf508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dicom_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from pflog import pflog
from pydicom.pixel_data_handlers import convert_color_space
import numpy as np
__version__ = '1.1.6'
__version__ = '1.1.8'

DISPLAY_TITLE = r"""
_ _ _ __ _ _ _
Expand Down Expand Up @@ -105,7 +105,7 @@ def save_as_image(dcm_file, output_file_path, file_ext):

# Prevents color inversion happening while saving as images
rgb = convert_color_space(pixel_array_numpy, "YBR_FULL", "RGB")
cv2.imwrite(output_file_path,rgb)
cv2.imwrite(output_file_path,cv2.cvtColor(rgb,cv2.COLOR_RGB2BGR))



Expand Down

0 comments on commit bdcf508

Please sign in to comment.