Code Monkey home page Code Monkey logo

Comments (5)

yagni avatar yagni commented on May 23, 2024

@leonardorame According to the DICOM standard, if a sequence has an explicit length of 0, then it shouldn't be followed by a sequence delimitation tag (section 7.5.2 in part 3.5) so it looks like that's invalid DICOM. dicomParser does have code to handle empty sequences, both in the case of explicitly defined length and implicitly defined length. In fact, I just wrote a couple of tests that have empty sequences like what's in your file and they passed. Is there any way you can attach one of the problematic data sets and we can take a look at it to see what's going on?

from dicomparser.

leonardorame avatar leonardorame commented on May 23, 2024

@yagni, yes, let me anonymize on of those files and I'll upload somewhere to let you check.

from dicomparser.

leonardorame avatar leonardorame commented on May 23, 2024

@yagni mm, wait, I've donwloaded one of those files, then tested it using https://rawgit.com/chafey/dicomParser/master/examples/dragAndDropDump/index.html and it was parsed without issue. Does that example uses your latest code?.

from dicomparser.

yagni avatar yagni commented on May 23, 2024

@leonardorame Yes, that's synced up with the latest release so it has my item tag check code in it.

from dicomparser.

leonardorame avatar leonardorame commented on May 23, 2024

Ok, it looks like the problem comes from cornerstoneWADOImageLoader in combination with the new dicomParser.

I'm closing this to continue here: cornerstonejs/cornerstoneWADOImageLoader#33

from dicomparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.