Unable to display dicom image in DCM4CHEE , converted using jpg2dcm

1,866 views
Skip to first unread message

dhava...@gmail.com

unread,
May 10, 2013, 8:55:41 PM5/10/13
to dcm...@googlegroups.com
Hi

I converted jpeg image to DICOM using jpg2dcm & sent it to DCM4CHEE, when I try to load image in DCM4CHEE it images does not show up,server logs show error as below.I am using latest version of dcm4chee-2.17.3 / PostgresDB and latest version of dcm4chee toolkit to convert from jpg2dcm and dcmsnd to DCM4CHEE.

Can any one let me know how can I resolve this issue ?


Thanks
Dhaval Joshi

2013-05-10 17:50:14,965 INFO  -> (http-0.0.0.0-8443-6) [org.dcm4chex.wado.mbean.WADOSupport] Get WADO object for 2.25.27984376796324349140194966964284141865
2013-05-10 17:50:15,015 INFO  -> (http-0.0.0.0-8443-6) [org.dcm4chex.wado.mbean.WADOSupport] start decompression of image: 1040x1891 (current codec tasks: compress&decompress:1 compress:1)
2013-05-10 17:50:15,015 ERROR -> (http-0.0.0.0-8443-6) [org.dcm4chex.wado.mbean.WADOSupport] Can't read image:
java.lang.IndexOutOfBoundsException: imageIndex out of bounds!
    at com.sun.media.imageioimpl.plugins.clib.CLibImageReader.seekToImage(CLibImageReader.java:437)
    at com.sun.media.imageioimpl.plugins.clib.CLibImageReader.read(CLibImageReader.java:566)
    at org.dcm4cheri.imageio.plugins.DcmImageReader.decompress(DcmImageReader.java:650)

dhaval joshi

unread,
May 13, 2013, 12:44:58 PM5/13/13
to
Any Idea, How can I resolve this issue ?


dhava...@gmail.com

unread,
May 13, 2013, 1:43:24 PM5/13/13
to dcm...@googlegroups.com
Do you know when this bug might get resolve : http://www.dcm4che.org/jira/browse/DCM-515 , I tried using dcm4che-tool-jpg2dcm-2.0.27.jar still I keep getting this error

dhaval joshi

unread,
May 14, 2013, 7:38:33 PM5/14/13
to dcm...@googlegroups.com
run:
M-READ file:C:\compress\c11
log4j:WARN No appenders could be found for logger (org.dcm4cheri.data.DcmParserImpl).
log4j:WARN Please initialize the log4j system properly.
M-WRITE file:C:\compress\d1
1.2.840.10008.1.2.4.50
acquire codec semaphore
start decompression of image: 1040x1891x1 (concurrency:1)

java.lang.IndexOutOfBoundsException: imageIndex out of bounds!
    at com.sun.media.imageioimpl.plugins.clib.CLibImageReader.seekToImage(CLibImageReader.java:437)
    at com.sun.media.imageioimpl.plugins.clib.CLibImageReader.read(CLibImageReader.java:566)
    at DecompressCmd.decompress(DecompressCmd.java:188)
    at DecompressCmd.decompressFile(DecompressCmd.java:102)
    at DecompressCmd.main(DecompressCmd.java:64)
java.io.EOFException
    at javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:339)
    at org.dcm4cheri.data.DcmParserImpl.readBytes(DcmParserImpl.java:799)
    at org.dcm4cheri.data.DcmParserImpl.readValue(DcmParserImpl.java:758)
    at org.dcm4cheri.data.DcmParserImpl.doParse(DcmParserImpl.java:633)
    at org.dcm4cheri.data.DcmParserImpl.parseDataset(DcmParserImpl.java:511)
    at org.dcm4cheri.data.DcmParserImpl.parseDataset(DcmParserImpl.java:500)
    at DecompressCmd.decompressFile(DecompressCmd.java:111)
    at DecompressCmd.main(DecompressCmd.java:64)
BUILD SUCCESSFUL (total time: 0 seconds)

dhaval joshi

unread,
May 16, 2013, 8:25:58 PM5/16/13
to dcm...@googlegroups.com
Any Idea how can resolve this issue ?
--
Thanks
Dhaval Joshi

dhaval joshi

unread,
May 19, 2013, 8:03:19 PM5/19/13
to dcm...@googlegroups.com
Does anyone know how can I resolve this issue ?
--
Thanks
Dhaval Joshi

dhaval joshi

unread,
May 22, 2013, 12:00:54 PM5/22/13
to dcm...@googlegroups.com
Hi

Can anyone from dcm4chee team let me know how can resolve this issue ?

Thanks

Max White

unread,
May 22, 2013, 1:35:46 PM5/22/13
to dcm...@googlegroups.com
Your JPEG picture has some jpg compression ? If yes, try the conversion without it.

dhaval joshi

unread,
May 22, 2013, 5:55:29 PM5/22/13
to dcm...@googlegroups.com
Max, Thanks for Reply. What I did was convert image as jpg2dcm and then pushed it to archive, then when I try to load image from archive it throws this error in server.log. There is some problem with dcm2jpg decompression withing dcm4chee , I have tried latest version and still issue has not been resolved


--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/A3Y0rbNlsrM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Thanks
Dhaval Joshi

dhaval joshi

unread,
May 23, 2013, 12:17:37 PM5/23/13
to dcm...@googlegroups.com
Do you know why this is happening, It looks to me dcm4chee decompression issue while converting as dcm2jpg
--
Thanks
Dhaval Joshi

Max White

unread,
May 23, 2013, 12:57:43 PM5/23/13
to dcm...@googlegroups.com
Yes; try with another sample images to analyse the results.

dhaval joshi

unread,
May 23, 2013, 2:20:11 PM5/23/13
to dcm...@googlegroups.com
Hi Max

It happens with jpg image which is converted to dcm, The dimension of jpeg image is 1891 x 1040. I can attach this image if you want me too, let me know

Note: It will not happen with all jpeg images which are converted to dcm, I see this only with jpeg images with odd dimensions, I have few jpeg images with 1280 x 1024 dimension and there are no issues with these type of jpeg images  

dhaval joshi

unread,
May 23, 2013, 2:53:09 PM5/23/13
to dcm...@googlegroups.com
yes I checked it again issues just happens with certain type of images not all jpeg images, don't know how can resolve this issue
--
Thanks
Dhaval Joshi

Bradley Ross

unread,
May 30, 2013, 1:44:19 PM5/30/13
to dcm...@googlegroups.com
You haven't mentioned what settings you are using on jpg2dcm.  Another problem is that there are multiple JPEG versions.  If these are JPEG-LS or JPEG_LOSSLESS, the transfer syntax of JPEG baseline is not appropriate.  Look at the Javadoc for org.dcm4che2.data.UID and you will several entries for JPEG.  If you are using JPEG-LS or JPEG-LOSSLESS, you have to use the correct transfer syntax.  However, the DCM4CHEE server may not support these formats.  

If you are storing a JPEG-LS or JPEG-LOSSLESS as JPEG Baseline, you could errors like those shown above because the system will be using the wrong codec.  Try storing them as uncompressed images.  (If you are using a PACS system as the original source, your PACS viewer should be able to decompress the images.)

If you can open the image file using a web browser, the images are probably JPEG baseline.  If you can't and have to use a PACS viewer, then they are probably other formats.
 
I realize that this may be a little confusing.  JPEG, JPEG-LS, and JPEG-LOSSLESS are three different compression schemes.  The transfer syntax must represent the actual compression scheme.  JPEG-LS and JPEG-LOSSLESS may not be supported on your DCM4CHEE server.

dhaval joshi

unread,
May 30, 2013, 5:03:37 PM5/30/13
to dcm...@googlegroups.com
I am using JPEG-LS compression & I checked again transfer syntax is correct


--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/A3Y0rbNlsrM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Thanks
Dhaval Joshi

Bradley A. Ross

unread,
May 31, 2013, 9:45:41 AM5/31/13
to dcm...@googlegroups.com
Make sure that you look at


I'll think about it some more.
Reply all
Reply to author
Forward
0 new messages