Skip to content

Commit

Permalink
added feature to handle color channels during image processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Feb 29, 2024
1 parent 23af990 commit 1f2813e
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 @@ -9,7 +9,7 @@
import json
from pflog import pflog

__version__ = '1.1.0'
__version__ = '1.1.2'

DISPLAY_TITLE = r"""
_ _ _ __ _ _ _
Expand Down Expand Up @@ -101,7 +101,7 @@ def save_as_image(dcm_file, output_file_path, file_ext):
pixel_array_numpy = dcm_file.pixel_array
output_file_path = str(output_file_path).replace('dcm', file_ext)
print(f"Saving output file as {output_file_path}")
cv2.imwrite(output_file_path, pixel_array_numpy)
cv2.imwrite(output_file_path, cv2.cvtColor(pixel_array_numpy,cv2.COLOR_RGB2BGR))


def read_input_dicom(input_file_path, filters):
Expand Down

0 comments on commit 1f2813e

Please sign in to comment.