Dicom:dcm4che Toolkit How to compress DCM files discussion (previous article)

Source: Internet
Author: User

Background:

The DICOM column series has introduced most of the DICOM standard open source implementation libraries, such as DCMTK, fo-dicom, MDCM, and Dcm4che. most of the previous presentations were confined to the surface, not in-depth analysis of each other's differences, so it is easy to step on the pit during specific use -for example, the compression of DCM files .
Recently due to the project needs, out of the cloud platform for customers to deploy, given the local network environment and data volume problems, the need for data compression, because medical data is mainly used for clinical auxiliary diagnosis, so can not use lossy compression, It is convenient to use DCMTK for lossless and lossy compression of DCM (for details, please search previous column posts), Zennai the problem when compressing with Dcm4che, as detailed below.

Compression services in Dcm4chee:

In the Dcm4chee official website There is an introduction to the compression service, which indicates that the compression service can be turned on by setting the Compressionrules parameter in the storage SCP. Setup is still based on the Dcm4chee server, which was built on UBUNTU14, for example, the browser input: Http://localhost:8088/jmx-console, pop up the following interface:

Navigate to the Compressionrules in which to set the compression of various types of images, the default settings are as follows:

Here in order to start the compression immediately, add a new compression standard, that is, ctimagestorage:jlsl:0d, meaning that the image of the CT format immediately JPEG lossless lossless compression. Click the Apply Changes button below Jmx-console to apply the change.
Then use Dcmsnd.bat [email protected]:11112 c:\nonjpeg.dcm for testing, the server prompts the following error:
No Image writer Com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriter available for format:jpeg.

"Note": for this problem search for a long time, did not find a good solution, since the server can not achieve compression, but vaguely remember before the Dcm4chee server to receive the client sent compressed data. So decided to change the thinking, try to compress directly on the client, and then upload to the Dcm4chee backend server.

Dcm4che Compression function attempt:

According to the description of the thread:how to compress using JPEG , the Dcm4che Toolkit has the function of compressing DCM, so a local attempt is made to enter the following command:
Dcm2dcm-t 1.2.840.10008.1.2.4.70 c:\1.dcm C:\1JPEG.DCM, the output results are as follows:

This error is similar to the previous error on the server and indicates that the corresponding jar package is missing. By retrieving the error, the solution found is to manually copy the Jai_imageio.jar to the system Jre\lib\ext directory and rerun the error as follows:

Subsequent references to the various official solutions, such as solution 1: Replace the Jai_imageio in the Dcm4che package , solution 2: Install Jai_imageio.jar package , solution 3: Replace the local 32 as the JRE environment , where the latest dcm4che-3 is also tried locally. x version, but it didn't solve the problem .

Solution?

Through this server and client testing, it can be concluded that the problem appears on the Jai_imageio.jar package, so finding out how to use jai_imageio.jar smoothly should solve the problem.
Given the previous lack of Java development experience, especially the lack of understanding of Java Image I/O, there is no solution for the Dcm4che Toolkit to compress DCM files, such as a friend who knows the solution, or a jar_ Imageio.jar more familiar, please email contact me, Thanks a lot!




[Email protected]
Date: 2015/07/26

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Dicom:dcm4che Toolkit How to compress DCM files discussion (previous article)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.