Problem compressing XA multiframe

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
GabrielBianco
Posts: 21
Joined: Tue, 2006-03-21, 00:06

Problem compressing XA multiframe

#1 Post by GabrielBianco »

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?

Michael Onken
DCMTK Developer
Posts: 2049
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#2 Post by Michael Onken »

Hi,

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/#

GabrielBianco
Posts: 21
Joined: Tue, 2006-03-21, 00:06

#3 Post by GabrielBianco »

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)

Michael Onken
DCMTK Developer
Posts: 2049
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#4 Post by Michael Onken »

Hi,

right, my windows version from 3.5.4 crashes, too. However, dcmcjpeg from the CVS seems to work for your file.
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)
The snapshots can be downloaded from the DCMTK page.

Regards,
Michael

GabrielBianco
Posts: 21
Joined: Tue, 2006-03-21, 00:06

#5 Post by GabrielBianco »

That worked... Thanks, Michael :-)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest