I'm trying to compress a file using the precompiled Windows binaries. It's a XA multiframe file, you can download it from:
http://rapidshare.com/files/142877809/x ... l.zip.html
Lossless compression works fine, but lossy compression does not. This is the command I use:
dcmcjpeg +un +ho +rm +q 90 +eb xa_original.dcm xa_lossy.dcm
Any ideas, workarounds?
Problem compressing XA multiframe
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2049
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Hi,
that works for me using dcmcjpeg from DCMTK 3.5.4:
that works for me using dcmcjpeg from DCMTK 3.5.4:
onken@xxx:~/temp/# dcmcjpeg +un +ho +rm +q 90 +eb xa_original.dcm xa_lossy.dcm -v -d
reading input file xa_original.dcm
Convert DICOM file to compressed transfer syntax
Output transfer syntax JPEG Baseline can be written
creating output file xa_lossy.dcm
conversion successful
onken@xxx:~/temp/# dcmcjpeg --version
$dcmtk: dcmcjpeg v3.5.4 2005-12-20 $
dcmcjpeg: Encode DICOM file to JPEG transfer syntax
Host type: x86_64-pc-linux-gnu
External libraries used:
- ZLIB, Version 1.2.3
- IJG, Version 6b 27-Mar-1998 (modified)
onken@xxx:~/temp/#
-
- Posts: 21
- Joined: Tue, 2006-03-21, 00:06
The only difference in your test is the OS. It's probably something specific to the Windows code...
C:\>dcmcjpeg_ori +un +ho +rm +q 90 +eb xa_original.dcm xa_lossy.dcm -v -d
reading input file xa_original.dcm
Convert DICOM file to compressed transfer syntax <--- crashes after this
C:\>dcmcjpeg_ori --version
$dcmtk: dcmcjpeg v3.5.4 2005-12-20 $
dcmcjpeg: Encode DICOM file to JPEG transfer syntax
Host type: i386-pc-win32
External libraries used:
- ZLIB, Version 1.2.3
- IJG, Version 6b 27-Mar-1998 (modified)
-
- DCMTK Developer
- Posts: 2049
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Hi,
right, my windows version from 3.5.4 crashes, too. However, dcmcjpeg from the CVS seems to work for your file.
Regards,
Michael
right, my windows version from 3.5.4 crashes, too. However, dcmcjpeg from the CVS seems to work for your file.
The snapshots can be downloaded from the DCMTK page.Y:\temp>dcmcjpeg +un +ho +rm +q 90 +eb xa_original.dcm xa_lossy.dcm -v -d
reading input file xa_original.dcm
Convert DICOM file to compressed transfer syntax
Output transfer syntax JPEG Baseline can be written
creating output file xa_lossy.dcm
conversion successful
Y:\temp>dcmcjpeg +un +ho +rm +q 90 +eb xa_original.dcm xa_lossy.dcm -v -d --version
$dcmtk: dcmcjpeg v3.5.4 2005-12-20 $
dcmcjpeg: Encode DICOM file to JPEG transfer syntax
Host type: i386-pc-win32
External libraries used:
- IJG, Version 6b 27-Mar-1998 (modified)
Regards,
Michael
Who is online
Users browsing this forum: No registered users and 1 guest