Comments (3)
You need to use the APIs described in the readme, which allow you to make more conversions than in dcm4che, and in a simpler way. It is not advisable to manipulate streams.
Path src = Paths.get("input.dcm");
Path dest = Paths.get("output.dcm");
try {
DicomTranscodeParam params = new DicomTranscodeParam(UID.JPEGLossless);
Transcoder.dcm2dcm(src, dest, params);
}
catch (IOException e) {
e.printStackTrace();
}
from weasis-dicom-tools.
thank you for the response, however I have to work on the streams as I am working on a network-based tool. I have solved the original problem by wrapping the byte arrays as BulkData objects
from weasis-dicom-tools.
The library already implements all transcoding situations and smart multiframe management to store in memory only frames in lazy loading mode. That's why it's not advisable to manipulate the bulkdata part directly. There's also the possibility of applying processing to the image using Editable.
This library is used in a DICOM gateway for tag morphing and pixel data transformation by applying masks.
Please specify more precisely which use case cannot be managed
from weasis-dicom-tools.
Related Issues (20)
- No binary HOT 1
- dicomizer not coping with jpegs
- CStore returned success code despite failing HOT 10
- CGet.STORAGE_SOP needs to be modifieable HOT 3
- CMove.process Passing SOPInstanceUID parameters,obtain the result error HOT 2
- TransferSyntaxUID is duplicated in Dicomizer
- Update to dcm4che 5.14.1
- Cannot dicomize some jpeg images
- Update to dcm4che 5.15.0
- Update to dcm4che 5.22.6
- Publish new versions on maven central HOT 4
- CLIUtils out of date HOT 1
- NPE with corrupted LUT
- error on Windows OS with the processStudy function HOT 3
- Free native memory issue
- can't read Chinese words HOT 6
- Cannot integrate tools to Weasis HOT 2
- in JPEG2000, CompressionRatioFactor is different in the image HOT 4
- Using weasis-dicom-tools and dcm4che-imageio in the same project
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 weasis-dicom-tools.