Slow Jpeg Decompression.

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
cnu1439
Posts: 4
Joined: Thu, 2014-04-17, 09:14

Slow Jpeg Decompression.

#1 Post by cnu1439 »

Hi,
We have a medical applicaton where we need to play dicom series with 30fps. When we are reading compressed dicom images, we are not able to achieve this. I have run sample program on few images. used "dcmdjpeg" to get uncompressed sample data.

Code: Select all

					   compressed(sec)	decompressed(sec)
sample0(256x256)	  0.004212		 0.002773
sample1(800x600)	  0.023902		 0.009392
sample2(1920x1200)	0.08896		  0.035536
sample3(1920x1200)	0.0888		   0.041912
Program & Data Link : https://drive.google.com/folderview?id= ... sp=sharing

In case of high resolution images we are only getting 10fps. Is there any way to fasten jpeg decompression. instead of pre-converting compressed images.

Thank You.

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

Re: Slow Jpeg Decompression.

#2 Post by Michael Onken »

Hi,

I cannot say whether your numbers are fast or not, however, I can say that there is no way to speed up decompression by providing certain parameters to DCMTK tools, libraries or the like. You could try decompressing more than one image at a time, if you have a multi-core processor.

Our underlying JPEG library (IJG) is the most widespread JPEG library used. If you like to do the work you could try to integrate another library, e.g. there is a spin-off from the IJG libraries called libjpeg turbo which supports the original API and uses various measures to speed up compression and decompression.

Best,
Michael

dragon_fly
Posts: 16
Joined: Mon, 2012-11-05, 10:52

Re: Slow Jpeg Decompression.

#3 Post by dragon_fly »

you could rewrite JPEG with SIMD.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest