Comments (6)
Hi -
Basically with the cross-compiled dcmtk code you have access to the same utilities that dcmtk provides on a desktop or server system. So you could use dcmodify to change the tag values. It may be easiest to look at the dump example to see how to invoke a dcmtk utility from javascript.
In the 'organize' example, we took the approach of dumping the data and converting to a DOM that we could easily manipulate and then converting back to dicom for output. It's a little convoluted but it does work.
Also, just so you are aware, there is a new version of dcmjs at a very preliminary stage that implements some of the dcmtk-like functionality in pure javascript, so it's much lighter weight and more easily extensible. The new code is not yet ready for prime time, but we hope it is getting closer.
-Steve
from dcmjs.org.
Hi Steve,
Thanks for the update. Please tell me once you done with the newer version of dcmjs. It will be very helpful for me.
Thanks,
PM
from dcmjs.org.
Just a note: the organize example does not work anymore, since the dump2dcm tool is not part of https://github.com/commontk/dcmjs.org/blob/gh-pages/javascripts/libs/dcmjs.js.
And unfortunately one can not recompile atm as described here: commontk/dcmjs#17
I will have a look at dcmjs pure js
from dcmjs.org.
Thanks for the report - yes, there's a of "mechanism" involved in the cross-compiling where the pure-javascript part can be dead simple. I've been meaning to port the 'organize' functionality but haven't gotten around to it. Would be glad to have help.
from dcmjs.org.
Thanks for the report - yes, there's a of "mechanism" involved in the cross-compiling where the pure-javascript part can be dead simple. I've been meaning to port the 'organize' functionality but haven't gotten around to it. Would be glad to have help.
So you would port it using xml2dcm since this is ON or using the new js only dcmjs?
from dcmjs.org.
Originally I had planned to use dcm2xml and xml2dcm but it turned out the raw data save/restore path wasn't supported, so I couldn't recreate a valid dicom object with the pixel data. That's why there's the whole dcmdump/dump2dcm workaround. I was glad that it was able to work at all, but for porting I would definitely use the new dcmjs-org version. It's smaller, faster, more logical, etc.
The only real drawback is that it isn't as widely tested as dcmtk and no doubt there are features of dcmtk that are not supported in pure js currently.
from dcmjs.org.
Related Issues (20)
- adding tags not working HOT 1
- file grouping of output by zipFileName HOT 5
- review structural dicom tags not in CTP profile HOT 4
- download log HOT 5
- too many zip files HOT 2
- zip file never gets created HOT 5
- skip map failures HOT 2
- chrome gets stuck after reading HOT 2
- (minor) - closing/reopening browser -> bad mapping table
- (minor) moving files in filesys while reading in chrome needs to lead to well-defined error
- avoid possibility for user to create non-unique filepath across dataset
- if using mapping, make configs impossible that access original values
- fix hashUID function
- warn on page reload if processing ongoing
- zip files cannot be read with standard Win7 unzip
- organize fails on some bad dicom HOT 3
- Improved transparency of the anonymization details
- Support anonymization profiles implemented in CTP HOT 21
- Improve transparency of the output directory structure configuration HOT 6
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.org.