Code Monkey home page Code Monkey logo

Comments (9)

pieper avatar pieper commented on September 21, 2024

Thanks for posting this issue with a link to the data. Perhaps someone will be able to use this to help with this.

It would help if you provided the exact code to replicate the issue, along with screenshots before and after. If there are any diagnostic messages printed please include those too.

from dcmjs.

suoc avatar suoc commented on September 21, 2024

I used your nodejs sample code.
Before
After

from dcmjs.

pieper avatar pieper commented on September 21, 2024

Did you look at the object before and after? Probably there is a sequence that didn't get converted.

Note that this is not a paid project with guaranteed support. We'd like to make the software better but we need to share the work of investigating any issues. It would help if you posted the file before and after and also investigate specifically what's different.

from dcmjs.

suoc avatar suoc commented on September 21, 2024

Here is my code.

const filePath = 'a dcm file path';

let arrayBuffer = fs.readFileSync(filePath).buffer;

let DicomDict = dcmjs.data.DicomMessage.readFile(arrayBuffer);

const dataset = dcmjs.data.DicomMetaDictionary.naturalizeDataset(DicomDict.dict);

console.log(dataset);

DicomDict.dict = dcmjs.data.DicomMetaDictionary.denaturalizeDataset(dataset);

let new_file_WriterBuffer = DicomDict.write();

fs.writeFileSync('to local path', new Buffer(new_file_WriterBuffer));

from dcmjs.

suoc avatar suoc commented on September 21, 2024

Thank you for your reply, in addition, I also found that the data parsed by dcmjs will be partially missing.
image

from dcmjs.

suoc avatar suoc commented on September 21, 2024

Sorry for my mistake, I found the reason and I will close this issue.

from dcmjs.

pieper avatar pieper commented on September 21, 2024

Okay, glad you sorted it out and thanks for looping back to report here 👍

from dcmjs.

suoc avatar suoc commented on September 21, 2024

The reason for this issue is that calling naturalizeDataset and then calling denaturalizeDataset will lose some tags.

from dcmjs.

pieper avatar pieper commented on September 21, 2024

Did you see anything odd about the data that would explain why it behaves this way?

from dcmjs.

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.