Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve image contrast windowing in DICOM output #4

Open
tomaroberts opened this issue Jan 10, 2023 · 3 comments
Open

Improve image contrast windowing in DICOM output #4

tomaroberts opened this issue Jan 10, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@tomaroberts
Copy link
Owner

tomaroberts commented Jan 10, 2023

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:

  • improve the method of interpreting the NIfTI voxel values and correctly setting the contrast/windowing/slope tags in the DICOM files.
@tomaroberts tomaroberts added the bug Something isn't working label Jan 10, 2023
@tomaroberts
Copy link
Owner Author

Reminder... running:

  • nii2dcm input.nii.gz output seems to produce DICOMs that look correct when opened in MITK Workbench
  • nii2dcm input.nii.gz output -d SVR seems to produce DICOMs that look correct when opened in ITK Snap

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
Copy link

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

@tomaroberts
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants