DICOM -> JPG/PNG/TIFF/BMP
Project description
dicom2jpg
A simple function tool to convert DICOM files into jpg, tiff, png, or bmp files.
Intro
It applies window center(level) and window width adjustment, or VOI LUT function to the images, which makes output files looks like what we see on standard DICOM viewers.
Known issue
- Error while converting multi-frame fluoroscopic image array
error: OpenCV(4.0.1) C:\ci\opencv-suite_1573470242804\work\modules\imgcodecs\src\loadsave.cpp:667: error: (-215:Assertion failed) image.channels() == 1 || image.channels() == 3 || image.channels() == 4 in function 'cv::imwrite_'
Todo
- Multiprocessing for speeding up
Image examples
CT | MR | CXR |
---|---|---|
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dicom2jpg-0.0.1.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file dicom2jpg-0.0.1.tar.gz
.
File metadata
- Download URL: dicom2jpg-0.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25c0c80cad7d7e56ef1c9afb8b5fce7da49c06f497dd59ad5fe447944221036f |
|
MD5 | c33dee29a73fd71bb8b1557d38029993 |
|
BLAKE2b-256 | da19426a992cf6cb7e49edbc7c4b8bf356a34df3eca34940d83f97c6112f6baa |
File details
Details for the file dicom2jpg-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: dicom2jpg-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b19226bec9e497a9f0e30013bdf3119bd38ef921d897ea70a61aac2f46bc788 |
|
MD5 | 446c3290ba670356a3469ce82b178a01 |
|
BLAKE2b-256 | 6ee31bc371ba266af123cd027d2afb040ff6d62e514abad24241b9496af7b062 |