Wednesday, March 25, 2020

PNG conversion for jpeg compressed DICOM images

Due to an existing bug in pydicom, the png conversion of (tested with jpeg lossless compression) compressed dcm images were failing.

A few steps to fix the issue (tested on Mac).


2. Close and open your terminal.

3. pip install pydicom image numpy pandas pypng

4. conda install -c conda-forge -y gdcm

5. Now run your python script again and see it works.

No comments:

Post a Comment

You are welcome to provide your opinions in the comments. Spam comments and comments with random links will be deleted.