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

JPX Error: Unsupported COD options (dwv api) please.. help me... #349

Closed
taehun1214 opened this issue May 26, 2017 · 11 comments
Closed

JPX Error: Unsupported COD options (dwv api) please.. help me... #349

taehun1214 opened this issue May 26, 2017 · 11 comments
Labels
question Further information is requested
Milestone

Comments

@taehun1214
Copy link

taehun1214 commented May 26, 2017

Thanks for this wonderful library,

most patientID dicom files can be loaded perfectly.

but some patientID dcm files show following error...

I can provide image if needed

...........error console... I just want to show simple thumbnail....

jpx.js:339 Uncaught Error: JPX Error: Unsupported COD options (selectiveArithmeticCodingBypass)
    at JpxImage_parseCodestream [as parseCodestream] (jpx.js:339)
    at JpxImage_parse [as parse] (jpx.js:91)
    at decode-jpeg2000.js:13

.......my code............

<script src="/resources/dicom/js/dwv.js"></script>
<script src="/resources/dicom/js/applauncher.js"></script>
<script src="/resources/dicom/js/i18next.min.js"></script>
<script
	src="/resources/dicom/js/i18nextXHRBackend.min.js"></script>
<script
	src="/resources/dicom/js/i18nextBrowserLanguageDetector.min.js"></script>

.........
function onSearch() {
    pacsService.connect($scope.pacs).then(
            function(response) {
                console.log(response);
                if (response != 0) {
                    console.log(response);
                    
                    dwv.gui.getElement = dwv.gui.base.getElement;
                    dwv.gui.displayProgress = function(percent) {
                    };
                    var app = new dwv.App();
                    
                    app.init({
                        "containerDivId" : "dwv",
                        "tools" : [ "Scroll" ],
                    });
                    // load dicom data
                    app.loadURLs(response);
                } 
            });
}

please tell me what should I do??....

@taehun1214 taehun1214 changed the title JPX Error: Unsupported COD options (dwv api) JPX Error: Unsupported COD options (dwv api) please.. help me... May 26, 2017
@ivmartel
Copy link
Owner

This is a current limitation of the JPEG2000 decoder. This third party library comes from Mozilla's pdf.js project. See these two related issues:

@taehun1214
Copy link
Author

taehun1214 commented May 26, 2017

How to implement on decoder side?

They said it is easy to solve this problem..

I think "cornerstone" which is other library is working..

And it uses many third party library including wado, dicomparsr and decoders..

I think It could be integrated with dwv.

I don't care the quality of a dicom file..

I hope to just show a dicom image.

@ivmartel ivmartel added the question Further information is requested label May 27, 2017
@ivmartel ivmartel added this to the 0.21.0 milestone May 27, 2017
@taehun1214
Copy link
Author

I have to this right now.. Could you let me know the progress? Please.. I really beg you..

@taehun1214
Copy link
Author

please... any suggestions???

@ivmartel
Copy link
Owner

Sorry, I do not know how to fix the decoder, maybe best to ask @jpambrun directly.

@taehun1214
Copy link
Author

At the moment, I asked him.. By the way, If I could ignore checking this exception, Is it possible??.. I really need this. And I just want to show the dicom image and I don't care the quality of the image..

@jpambrun
Copy link

jpambrun commented Jun 19, 2017 via email

@ivmartel
Copy link
Owner

I created an issue to study the integration of openjpeg. Please comment there if you need.

@taehun1214
Copy link
Author

ok. I really need.

@Mamta92
Copy link

Mamta92 commented Mar 31, 2020

Can I get to know the exact reason why it is failing? I'm also facing the same issue for a particular series.

@ivmartel
Copy link
Owner

ivmartel commented Apr 1, 2020

@Mamta92 please use #718 for comments. As mentioned there, if you could share some data that would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants