contrib-pydicom
contrib-pydicom copied to clipboard
contributions to the core pydicom base, including tutorials, extra plugins, etc.
Changed the way LUT was applied to pixel data Added Image Brightness control using ImageEnhance from PIL New create_GIF method to save a videoclip from DICOM files with multiple frames.
While trying to generate the image from the pixel data, got this [result](https://imgur.com/a/sttLPJI) I made a few tweaks to the code and finally got what i was [expecting](https://imgur.com/a/pcLpFuf) Here is...
The calculated `distance_sum` takes care only of `ImagePositionPatient`: https://github.com/pydicom/contrib-pydicom/blob/cbd27f1ac523863aeba820edf796bf040d63993f/input-output/pydicom_series.py#L662-L669 However, to compute the slice spacing one also has to take care of `ImageOrientationPatient`, see [dicom_numpy](https://github.com/innolitics/dicom-numpy/blob/204e95594a527bbab1444f9248432ffa01af024c/dicom_numpy/combine_slices.py#L250-L256)'s implementation.
In a recent PR, there was some cleanup of `pydicom.compat` import that needed to be done in a 'contrib' script. Should also do so for the other scripts in preparation...
#### Description This is a migration from [this pydicom issue](https://github.com/pydicom/pydicom/issues/379#issuecomment-313898776) ## Original Issue I'm going through the examples and I can not run dicomtree. ```sh $ python dicomtree.py ~/Documents/my_dicomdir/ Traceback...
#### What contibution are you adding? How do we use it? The pydicom_PIL.py script can now accept command line arguments to display images. Prior to this PR, it would be...
#### Is there an issue this contribution addresses? #### What contibution are you adding? How do we use it? - This example just requires PyQT5. PyQT5 requires Python 3.5 or...