Coder Social home page Coder Social logo

Comments (3)

nroduit avatar nroduit commented on September 13, 2024

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.

mikhail-timofeev avatar mikhail-timofeev commented on September 13, 2024

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.

nroduit avatar nroduit commented on September 13, 2024

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)

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.