Retrieve of dicom files through movescu

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
sas
Posts: 7
Joined: Tue, 2005-01-04, 17:38

Retrieve of dicom files through movescu

#1 Post by sas »

Hi,

I am using the imagectn application to run the C-MOVE SCP and at the same time act as an C-STORE SCU.
I am using the movescu application to run the C-MOVE SCU and at the same time act as C-STORE SCP.
I am able to retrieve the images but my problem is that the retrieved images are not of the same size but are bigger in size. I have four image files each of 136 KB which needs to be retrieved. Three of the retrieved files are of 137 KB and the fourth one is of 136KB. Why is it so?

Also, do let me know is there a way to specify the directory in which I want the retrieved files to be populated? Currently , I find them getting stored in the directory from from which I am running the movescu application.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

I am able to retrieve the images but my problem is that the retrieved images are not of the same size but are bigger in size.
There could be many reasons for this, e.g.
  • implicit vs. explicit VR
  • group length tags
  • size of the meta-header
  • different coding variants
You could try option --bit-preserving for the movescu to avoid implicit encoding/format conversions.
Also, do let me know is there a way to specify the directory in which I want the retrieved files to be populated?
No, unfortunately not. The movescu always uses the current directory for this purpose.

hblanco
Posts: 5
Joined: Tue, 2005-01-04, 21:56

about movescu

#3 Post by hblanco »

Hi sas,
I'm triying to use movescu but I've failed. I tried some tips that Thomas Wilkens gave me, but it doesn't work yet. What I know about movescu's semantics is that it implements the C-MOVE SCU and C-STORE SCP. In this case I suppose movescu sends a query for retrieving images from the server (imagectn) and the server makes another association (through a different port) with movescu to send (C-Store SCU) the images requested. I tested the storescu in particular and it worked ok, but movescu doesn't.

The point is that I dont' know where is failing this process. The command I wrote was:

movescu -v -P -aec COMMON +P 1005 toshiba-hank 104 imagequery.dcm

The log I get from server is:

Association Received (TOSHIBA-HANK:MOVESCU -> COMMON) Wed Jan 12 09:59:35 2005
Association Acknowledged (Max Send PDV: 16372)
Received Move SCP: C-Move RQ: MsgID: 1
AffectedSOPClassUID: =MOVEPatientRootQueryRetrieveInformationModel
Priority: 0
Data Set: Present
Move Destination: MOVESCU
Move SCP Request Identifiers:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0018) UI [2.16.840.1.113662.5.4163161425.127993205.1.1.47.873981071] # 58, 1 SOPInstanceUID
(0008,0052) CS [IMAGE] # 6, 1 QueryRetrieveLevel
(0010,0020) LO [P1K LEHRP] # 10, 1 PatientID
(0020,000d) UI [2.16.840.1.113662.5.4163161425.127993205.1] # 42, 1 StudyInstanceUID
(0020,000e) UI [2.16.840.1.113662.5.4163161425.127993205.1.1.47.873981071] # 58, 1 SeriesInstanceUID
Requesting Sub-Association


I made some modifications to my imagectn.cfg, I put all the AE I want to communicate with.

# Global Configuration Parameters
NetworkType = "tcp"
NetworkTCPPort = 104
MaxPDUSize = 8192
MaxAssociations = 20
Display = "yes"
#---------------------------------------
HostTable BEGIN

echoscu = (ECHOSCU, toshiba-hank, 104)
findscu = (FINDSCU, toshiba-hank, 104)
movescu = (MOVESCU, toshiba-hank, 104)
storescu = (STORESCU, toshiba-hank, 104)
storescp = (STORESCP, toshiba-hank, 104)

service = echoscu, findscu, movescu, storescu, storescp

HostTable END
#---------------------------------------
VendorTable BEGIN

"DCMTK AET" = service

VendorTable END
#---------------------------------------
AETable BEGIN

COMMON D:\Maestria\dicom\db\COMMON RW (200, 1024mb) service

AETable END



Any suggestions will be of great help. Thanks in advance, Hank.

sas
Posts: 7
Joined: Tue, 2005-01-04, 17:38

#4 Post by sas »

Hi hblanco,

Joerg Riesmeier has correctly pointed out that the port at which the client (movescu) is listening should be mentioned in the host table of the config file of imagectn.

In case it does not resolve your problem, let us know.

Also, hope you have registered all your dicom files (which the client wants to retrieve) with the imagectn. I was making that mistake earlier, so thought of bringing it to your notice.

Thanks,
sas

hblanco
Posts: 5
Joined: Tue, 2005-01-04, 21:56

problem solved

#5 Post by hblanco »

Hi folks, I finnaly solved my problem thanks to your advice. The problem was the port number of the movescu and storescp, they most be the same.

Thanks a lot.

veda
Posts: 12
Joined: Fri, 2005-05-13, 05:54
Location: Hyderabad

Retrive of Dicom Files through movescu

#6 Post by veda »

Hi ,

I'm triying to use movescu but I've failed.

The point is that I dont' know where is failing this process. The command I wrote was:

movescu -v -P -aec COMMON localhost 104 D:\DCMToolKit\dcmtk-3.5.3\dcmtk-3.5.3\dcmwlm\wlistqry\dcmimage1.dcm

The log I get from server is:

Association Received (localhost:MOVESCU -> COMMON) THU MAY 19
Association Acknowledged (Max Send PDV: 16372)
Received Move SCP: C-Move RQ: MsgID: 1
AffectedSOPClassUID: =MOVEPatientRootQueryRetrieveInformationModel
Priority: 0
Data Set: Present
Move Destination: MOVESCU
Move SCP Request Identifiers:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0018) UI [2.16.840.1.113662.5.4163161425.127993205.1.1.47.873981071] # 58, 1 SOPInstanceUID
(0008,0052) CS [IMAGE] # 6, 1 QueryRetrieveLevel
(0010,0020) LO [P1K LEHRP] # 10, 1 PatientID
(0020,000d) UI [2.16.840.1.113662.5.4163161425.127993205.1] # 42, 1 StudyInstanceUID
(0020,000e) UI [2.16.840.1.113662.5.4163161425.127993205.1.1.47.873981071] # 58, 1 SeriesInstanceUID
.
.
(7fe0,0010) OB 04\04\04\04\04\04\04\03\04\04\04\fd\fd\00\00\00\00\00\00\00\51\00
# 22, 1 PixelData

DB_startMoveRequest(): missing Query/Retrieve Level
imagectn: moveSCP: Database: DB_startMoveRequest Failed (Failed: IdentifierDoesN
otMatchSOPClass):
Move SCP Response 1 [status: Failed: IdentifierDoesNotMatchSOPClass]
Association Release


I made some modifications to my imagectn.cfg, I put all the AE I want to communicate with.

# Global Configuration Parameters
NetworkType = "tcp"
NetworkTCPPort = 104
MaxPDUSize = 8192
MaxAssociations = 20
Display = "yes"
#---------------------------------------
HostTable BEGIN

echoscu = (ECHOSCU, localhost, 104)
findscu = (FINDSCU, localhost, 104)
movescu = (MOVESCU, localhost, 104)
storescu = (STORESCU, localhost, 104)
storescp = (STORESCP, localhost, 104)

ANY = echoscu, findscu, movescu, storescu, storescp

HostTable END
#---------------------------------------
VendorTable BEGIN

"DCMTK AET" = ANY

VendorTable END
#---------------------------------------
AETable BEGIN

COMMON D:\db\COMMON R (200, 1024mb) ANY

AETable END



please, help me solve this problem...

Thanking you..
Ram
________
easy vape vaporizer
Last edited by veda on Thu, 2011-02-03, 21:01, edited 1 time in total.

veda
Posts: 12
Joined: Fri, 2005-05-13, 05:54
Location: Hyderabad

#7 Post by veda »

hi hblanco,

i too ran into the same problems as u did using movescu...
i did send my code above.

plzz..help me solve the problem...it's very urgent


Thanking you,
Ram
________
grape ape
________
Ford family tree specifications

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest