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

Image is coming as blurry in both OHIF v3 and OHIFv3 #2958

Closed
kunjesh1 opened this issue Sep 26, 2022 · 6 comments
Closed

Image is coming as blurry in both OHIF v3 and OHIFv3 #2958

kunjesh1 opened this issue Sep 26, 2022 · 6 comments

Comments

@kunjesh1
Copy link

Bug Report

Describe the Bug

Hi Team, I have uploaded the below DICOM file and it is coming as blurry in both v2 and v3 versions. However, I have used some DICOM viewer software like 3D slicer and Horos where it is rendered properly

What steps can we follow to reproduce the bug?

  1. Use this anonymized DICOM file and upload it in v2 and v3.
  2. Upload the DICOM file https://viewer-dev.ohif.org/local and also in https://v3-demo.ohif.org/local
  3. It is rendered blurry

Screenshot on v2

Screenshot 2022-09-26 at 4 52 35 PM

Screenshot on v3
Screenshot 2022-09-26 at 4 53 06 PM

Screenshot on HOROS viewer it is rendered properly there

Screenshot 2022-09-26 at 4 53 49 PM

@kunjesh1
Copy link
Author

Localizers - 1.zip

@swederik
Copy link
Member

That is a truly bizarre one, haven't seen it before. Thanks so much for the report!

@sedghi
Copy link
Member

sedghi commented Oct 7, 2022

@kunjesh1 Can you please update this issue with details that we found and discussed for future references and close it if it is done?

@kunjesh1
Copy link
Author

kunjesh1 commented Oct 7, 2022

Issue is with the WASM build for cornerstone Wado image loader v4:

Below are the screenshots for references

I degraded the version of cornerstone-wado-image-loader from 4 to 3.1.2 it worked fine .Below are the screenshots

Chris Hafey suspects it has to do with the code where he added to support of JP2 and J2K files here or may be DICOM is not compliant:

https://github.com/chafey/openjpegjs/blob/master/src/J2KDecoder.hpp#L230

Workaround

  • dcm2dcm to generate LEI then drag and drop to view
  • Using dcm2dcm to LEI or JPLL results in a valid image
  • Using dcm2dcm twice to LEI and then to J2K results in a good image.

https://gdcm.sourceforge.net/html/gdcmconv.html
run
dcm2dcm -jls fuzzy.dcm notFuzzy.dcm
gdcmconv --jpeg IM-0001-0001-0001.dcm not_fuzzy.dcm

cornerstone-wado-image-loader 4.1.2
Screenshot 2022-10-03 at 5 19 54 PM

cornerstone-wado-image-loader 3.1.2
Screenshot 2022-10-03 at 5 18 25 PM

@kunjesh1
Copy link
Author

kunjesh1 commented Oct 7, 2022

I am debugging the issue so keeping it open for now @sedghi

@sedghi
Copy link
Member

sedghi commented Oct 13, 2023

Please review the latest code in the master branch. I am confident that this issue has been resolved. If it persists, kindly reopen the issue with updated details.

Try viewer-dev.ohif.org instead of viewer.ohif.org
Our viewer.ohif.org is deployed from release branch while viewer-dev.ohif.org is our master branch
Read more about branch explanations here https://docs.ohif.org/development/getting-started#developing

@sedghi sedghi closed this as completed Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants