tomaroberts / nii2dcm

nii2dcm: NIfTI to DICOM creation with Python
Other
56 stars 14 forks source link

Improve image contrast windowing in DICOM output #4

Open tomaroberts opened 1 year ago

tomaroberts commented 1 year ago

Currently, when generating different types of DICOM (MRI, CT, different scanners, etc.) the intensity values/windowing in the output DICOM can be incorrect, e.g.:

Output DICOM contrast from input CT NIfTI dataset:

image

Some modalities are working, others are not.

TODO:

tomaroberts commented 1 year ago

Reminder... running:

Tried this with both CT and MRI DICOMs... something in how different programs interpret the DICOMs, but also some inconsistency in the nii2dcm Dicom/DicomMRISVR classes

yuankaiWang commented 1 year ago

the dicom file which has converted shows a big different in CT value. the window range is like 6,7 times larger

tomaroberts commented 1 year ago

Tested again today on generic CT image and this is still a problem.

Need to resolve such that running nii2dcm input.nii.gz output -d MR, nii2dcm input.nii.gz output -d CT, etc. outputs a DICOM dataset with reasonable contrast.

Currently tailored to specifically to SVRTK NIfTI files.