Compress images already compressed

43 views
Skip to first unread message

Thiago Henrique Busarello

unread,
Jul 3, 2020, 11:32:43 AM7/3/20
to dcm4che
My problem is: i receive studies already compressed in JPEG Lossless (1.2.840.10008.1.2.4.70). However, i like storage then in JPEG-LS (1.2.840.10008.1.2.4.80) because this compress is more less 25 % effective in size.

My test:
2.676 images =  452,7 MB in JPEG Lossless (1.2.840.10008.1.2.4.70)

using dcm2dcm to decompress and after compress again:

12:06:32,703 DEBUG - Decompressor: org.dcm4che3.opencv.NativeImageReader
12:06:32,716 DEBUG - Decompressed frame #1 in 9 ms, ratio 1:3.1274264

12:06:32,718 DEBUG - Compressor: org.dcm4che3.opencv.NativeJLSImageWriter
12:06:32,739 DEBUG - Compressed frame #1 in 18 ms, ratio 4.472417:1

2.676 images =  336,0 MB (JPEG-LS (1.2.840.10008.1.2.4.80 ) =   25% less

2 questios:

1) I see that pacs dont compress e dont schedule to compress images already compressed:

StoreServiceImpl.selectCompressRule

if (transcoder.getSourceTransferSyntaxType() != TransferSyntaxType.NATIVE) // already compressed
            return null;

Its possible to save the uncompressed images so that they can later be compressed by the compression scheduler?

or

2) Its possible to assign a compression in the forwarding different from the current compression, so i would have a Pacs that receives and stores the original image (1.2.840.10008.1.2.4.70), but that forwards with another compression (1.2.840.10008.1.2.4.80)  for exemplo.

or, if anyone have a new idea, i appreciate.

Thank,s  and if it is possible/desirable I am willing to help with the implementation.



Reply all
Reply to author
Forward
0 new messages