Comments (9)
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.
I used your nodejs sample code.
from dcmjs.
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.
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.
Thank you for your reply, in addition, I also found that the data parsed by dcmjs will be partially missing.
from dcmjs.
Sorry for my mistake, I found the reason and I will close this issue.
from dcmjs.
Okay, glad you sorted it out and thanks for looping back to report here 👍
from dcmjs.
The reason for this issue is that calling naturalizeDataset and then calling denaturalizeDataset will lose some tags.
from dcmjs.
Did you see anything odd about the data that would explain why it behaves this way?
from dcmjs.
Related Issues (20)
- private Tags take element wrong into account HOT 1
- Segmentation loading with wadors not working HOT 2
- dcmjs-imaging HOT 2
- Invalid tag in sequence : Unable to parse MR Dicom file in dcmjs. Cornerstone able to parse and works fine HOT 1
- Order of tags gets messed up when edition DICOM SEG HOT 7
- Length of Decimal String larger than 16 characters
- Lots of 'Invalid vr type... ' log messages in dcmjs release 0.29.11 HOT 4
- modifying dicom meta-data HOT 2
- Reading dicom file HOT 2
- Getting ERROR: Value exceeds max length for some DICOM tags HOT 2
- Write issue for JPEG2000Loseless images HOT 3
- Issue with pixel redaction for JPEGLoseless type HOT 1
- Change in PixelSequence value HOT 1
- Support for reading from a readable stream HOT 1
- Test failing due to missing image referenced by seg HOT 1
- PN tags interpretation as union between object and string breaks DIMSE functionality HOT 2
- Can use to load dicom segment? HOT 1
- Fail to denaturalize a sequence having private tags. HOT 1
- Netlify-deployed docs site (https://dcmjs.netlify.com/) is down HOT 4
- Loss of precision when serializing Decimal String (DS) and Integer String (IS) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcmjs.