MOVESCU - how to move images to a scpecific folfer

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
oguhantunes
Posts: 15
Joined: Mon, 2015-07-20, 14:25

MOVESCU - how to move images to a scpecific folfer

#1 Post by oguhantunes »

Hello,
I need to retrieve some images from one DICOM node to a specific location folder in another machine.
For that i am using MOVESCU command with this format

movescu.exe -v -d --study -od C:\Test -k 0008,0052=SERIES -k 00020,000e=1.2.840.113619.2.55.3.2831184717.996.1442814905.68 --port 104 -aet RADIACAO --call RT_QR_SCP SPIPOPIMS 7842

The command is running ok, but the images are not being stored in folder C:\Test as i expect.

The destination machine is listening on port 104 with command STORESCU:
storescu.exe -v 104

Can anyone help me find how can i do that?

Thanks,
Regards,
Hugo Antunes

J. Riesmeier
DCMTK Developer
Posts: 2498
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: MOVESCU - how to move images to a scpecific folfer

#2 Post by J. Riesmeier »

First of all, the storescu is never listening on a port. Do you mean the storescp tool?
Then, you start movescu with option "--port 104", which means that this tool also works as a storage SCP (listening on port 104).
By the way, also the Study Instance UID is missing on your movescu call...

oguhantunes
Posts: 15
Joined: Mon, 2015-07-20, 14:25

Re: MOVESCU - how to move images to a scpecific folfer

#3 Post by oguhantunes »

Sorry, my mistake. I wanted to say storescp, of course...
Yes, i am mentioning Study Instance UID with tag parameter 00020,000e=1.2.840.113619.2.55.3.2831184717.996.1442814905.68
And the files are retrieved sucessfully from the server !..but not to the folder that i want...

J. Riesmeier
DCMTK Developer
Posts: 2498
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: MOVESCU - how to move images to a scpecific folfer

#4 Post by J. Riesmeier »

The attribute tag (0020,000e) refers to the Series Instance UID and not to the Study Instance UID. When retrieving a Series in Study Root Information Model, you have to specify both UIDs!

Furthermore, why are you starting movescu with the --port option when you also started a storescp?

This all makes no sense to me...

oguhantunes
Posts: 15
Joined: Mon, 2015-07-20, 14:25

Re: MOVESCU - how to move images to a scpecific folfer

#5 Post by oguhantunes »

Right,
The port parameter was wrong. I have already removed it from the command.
Regarding the UIDs, iam using only Series UID, and it is working...the images are being retrieved.
The problem is that are not being received in the folder that i want..

J. Riesmeier
DCMTK Developer
Posts: 2498
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: MOVESCU - how to move images to a scpecific folfer

#6 Post by J. Riesmeier »

If you don't use the --port option, the movescu is not working as a Storage SCP and no DICOM objects are received by this tool. So the --output-directory option does not specify the directory where the DICOM files are created.
Since you did not specify the --move option, the move destination AE title is "MOVESCU" (default). You should check at the Q/R SCP to which IP address and port number the DICOM objects are "moved".

Post Reply

Who is online

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