DCMQR: retrieve DICOM file with specific Transfer syntax

1,169 views
Skip to first unread message

La Zonz'

unread,
Dec 18, 2012, 6:47:27 AM12/18/12
to dcm...@googlegroups.com
Hi,

I am trying dcm4che since 1 month and now I would like to receive some DICOM files with, for each file, a specific transfer syntax.
I have send in my ARCHIVE 1.2.840.10008.5.1.4.1.1.1.2 (Digital Mammography X-Ray Image Storage (For Presentation)) with transfer syntax 1.2.840.10008.1.2.1.
And now I would like to receive my DICOM file with another transfer syntax.

My command :

./dcmqr -L FOO  ARC...@192.168.30.207:11112 -q00100020=001 -S -cget -cstore 1.2.840.10008.5.1.4.1.1.1.2:1.2.840.10008.1.2.4.50 -cstoredest /home/user/

The prompt answer :

Start Server listening on port 10004
12:32:40,347 INFO   - Start listening on /192.168.30.200:10004
12:32:40,363 INFO   - Association(1) initiated Socket[addr=/192.168.30.207,port=11112,localport=44647]
12:32:40,363 INFO   - ARCHIVE(1): A-ASSOCIATE-RQ ARCHIVE << GUILLAUME
12:32:40,384 INFO   - ARCHIVE(1): A-ASSOCIATE-AC GUILLAUME >> ARCHIVE
12:32:40,385 INFO   - Connected to ARC...@192.168.30.207:11112 in 0.039 s
12:32:40,437 INFO   - Send Query Request using 1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND:
(0008,0052) CS #6 [STUDY] Query/Retrieve Level
(0010,0020) LO #4 [001] Patient ID
(0020,000D) UI #0 [] Study Instance UID
12:32:40,441 INFO   - ARCHIVE(1) << 1:C-FIND-RQ[pcid=1, prior=0
cuid=1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND
ts=1.2.840.10008.1.2/Implicit VR Little Endian]
12:32:40,457 INFO   - ARCHIVE(1) >> 1:C-FIND-RSP[pcid=1, status=ff00H
cuid=1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND
ts=1.2.840.10008.1.2/Implicit VR Little Endian]
12:32:40,459 INFO   - ARCHIVE(1) >> 1:C-FIND-RSP[pcid=1, status=0H
cuid=1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND]
12:32:40,459 INFO   - Query Response #1:
(0008,0005) CS #10 [ISO_IR 100] Specific Character Set
(0008,0052) CS #6 [STUDY] Query/Retrieve Level
(0008,0054) AE #16 [ARCHIVE] Retrieve AE Title
(0008,0056) CS #6 [ONLINE] Instance Availability
(0010,0020) LO #4 [001] Patient ID
(0020,000D) UI #44 [1.2.840.113681.168427542.1352729176.2328.159] Study Instance UID
(0088,0130) SH #0 [] Storage Media File-set ID
(0088,0140) UI #0 [] Storage Media File-set UID
12:32:40,459 INFO   - Send Query Request #1/1 using 1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND:
(0008,0052) CS #6 [SERIES] Query/Retrieve Level
(0008,0060) CS #0 [] Modality
(0010,0020) LO #4 [001] Patient ID
(0020,000D) UI #44 [1.2.840.113681.168427542.1352729176.2328.159] Study Instance UID
(0020,000E) UI #0 [] Series Instance UID
(0020,0011) IS #0 [] Series Number
(0020,1209) IS #0 [] Number of Series Related Instances
12:32:40,459 INFO   - ARCHIVE(1) << 2:C-FIND-RQ[pcid=1, prior=0
cuid=1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND
ts=1.2.840.10008.1.2/Implicit VR Little Endian]
12:32:40,465 INFO   - ARCHIVE(1) >> 2:C-FIND-RSP[pcid=1, status=ff00H
cuid=1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND
ts=1.2.840.10008.1.2/Implicit VR Little Endian]
12:32:40,465 INFO   - ARCHIVE(1) >> 2:C-FIND-RSP[pcid=1, status=0H
cuid=1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND]
12:32:40,466 INFO   - Query Response #1 for Query Request #1/1:
(0008,0005) CS #10 [ISO_IR 100] Specific Character Set
(0008,0052) CS #6 [SERIES] Query/Retrieve Level
(0008,0054) AE #16 [ARCHIVE] Retrieve AE Title
(0008,0056) CS #6 [ONLINE] Instance Availability
(0008,0060) CS #2 [MG] Modality
(0010,0020) LO #4 [001] Patient ID
(0020,000D) UI #44 [1.2.840.113681.168427542.1352729176.2328.159] Study Instance UID
(0020,000E) UI #44 [1.2.840.113681.168427542.1352729176.2328.174] Series Instance UID
(0020,0011) IS #8 [71100000] Series Number
(0020,1209) IS #2 [1] Number of Series Related Instances
(0088,0130) SH #0 [] Storage Media File-set ID
(0088,0140) UI #0 [] Storage Media File-set UID
12:32:40,466 INFO   - Received 1 matching entries in 0.082 s
12:32:40,467 INFO   - Send Retrieve Request using 1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET:
(0008,0052) CS #6 [SERIES] Query/Retrieve Level
(0010,0020) LO #4 [001] Patient ID
(0020,000D) UI #44 [1.2.840.113681.168427542.1352729176.2328.159] Study Instance UID
(0020,000E) UI #44 [1.2.840.113681.168427542.1352729176.2328.174] Series Instance UID
12:32:40,467 INFO   - ARCHIVE(1) << 3:C-GET-RQ[pcid=5, prior=0
cuid=1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
ts=1.2.840.10008.1.2/Implicit VR Little Endian]
12:32:40,474 INFO   - ARCHIVE(1) >> 3:C-GET-RSP[pcid=5, remaining=null, completed=0, failed=1, warning=0, status=a702H
cuid=1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
ts=1.2.840.10008.1.2/Implicit VR Little Endian]
12:32:40,475 INFO   - Retrieved 0 objects (warning: 0, failed: 1) in 0.0090s
12:32:40,475 INFO   - ARCHIVE(1) << A-RELEASE-RQ
12:32:40,476 INFO   - ARCHIVE(1) >> A-RELEASE-RP
12:32:40,476 INFO   - Released connection to ARC...@192.168.30.207:11112
12:32:40,476 INFO   - ARCHIVE(1): close Socket[addr=/192.168.30.207,port=11112,localport=44647]
12:32:40,476 INFO   - Stop listening on /192.168.30.200:10004

Why my command failed ?

In log I can see 
WARN [QueryRettrieveScpService] No Presentation Context for 1.2.840.10008.5.1.4.1.1.1.2 offered by FOO
 
I don't know if it's the source of the problem.

Can you help me please.

Arnold Maderthaner

unread,
Dec 18, 2012, 8:42:17 AM12/18/12
to dcm...@googlegroups.com
Did you compress the images to the transfer syntax you are requesting with as dcm4chee won't do a recompression based on your request afaik. 

yours

Arnold
Message has been deleted

Arnold Maderthaner

unread,
Dec 18, 2012, 8:51:40 AM12/18/12
to dcm...@googlegroups.com
You would need to specify the compression you want to apply to your files in the StoreSCP service if you want to compress before the file is written to disk or use the compression service to compress files in batch mode.
Normally compressing when storing is the better choice.

Am Dienstag, 18. Dezember 2012 14:49:36 UTC+1 schrieb La Zonz':
No I have send my image to the Dcm4che DICOM Archive without compression.

The Archive can't send my image with the previous request ?
It can't compress the image for match with the request ?

La Zonz'

unread,
Dec 18, 2012, 8:52:46 AM12/18/12
to dcm...@googlegroups.com
No I have sent my image to the Dcm4che DICOM Archive without compression.

The Archive can't send my image with the previous request ?
It can't compress the image to match with the request ?

Le mardi 18 décembre 2012 14:42:17 UTC+1, Arnold Maderthaner a écrit :

Arnold Maderthaner

unread,
Dec 18, 2012, 8:53:37 AM12/18/12
to dcm...@googlegroups.com
look at my previous post !

Suresh Viswanathan

unread,
Dec 18, 2012, 10:27:29 AM12/18/12
to dcm...@googlegroups.com
It can't compress the image to match with the request ?

Simple answer - no. 

Compression can occur only when received or as a batch process. Compressing each time a request is receiver would be computationally intensive and also produce a lag. At least that's the thinking. 

Also if the request is in a different compression format to what is stored you will get an uncompressed image.

Suresh. 

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To post to this group, send email to dcm...@googlegroups.com.
To unsubscribe from this group, send email to dcm4che+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che?hl=en.
 
 

La Zonz'

unread,
Dec 18, 2012, 10:31:22 AM12/18/12
to dcm...@googlegroups.com
Ok thanks for help.
Message has been deleted

La Zonz'

unread,
Dec 19, 2012, 11:42:37 AM12/19/12
to dcm...@googlegroups.com
I am trying to compress DICOM file with dcm2dcm.

./dcm2dcm -t 1.2.840.10008.1.2.4.51 /home/toto.dcm

But I got this error :


Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/media/imageio/stream/StreamSegmentMapper
at org.dcm4che2.imageioimpl.plugins.dcm.DicomImageReaderSpi.createReaderInstance(DicomImageReaderSpi.java:146)
at javax.imageio.spi.ImageReaderSpi.createReaderInstance(ImageReaderSpi.java:300)
at org.dcm4che2.tool.dcm2dcm.Dcm2Dcm.recodeImages(Dcm2Dcm.java:401)
at org.dcm4che2.tool.dcm2dcm.Dcm2Dcm.convert(Dcm2Dcm.java:313)
at org.dcm4che2.tool.dcm2dcm.Dcm2Dcm.mconvert(Dcm2Dcm.java:276)
at org.dcm4che2.tool.dcm2dcm.Dcm2Dcm.main(Dcm2Dcm.java:239)
Caused by: java.lang.ClassNotFoundException: com.sun.media.imageio.stream.StreamSegmentMapper
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

I found this thread which says java-imageio have a new location.

But for the moment i can't locate "JAI Image IO Tools 1.1\lib".

Sreejith Pillai

unread,
Apr 28, 2015, 8:42:43 AM4/28/15
to dcm...@googlegroups.com


hi,
    We noticed the same issue as below , Did you happen to find a solution to the status=a702H issue ?
Reply all
Reply to author
Forward
0 new messages