using dcm4che-toolkit 3 in own application

237 views
Skip to first unread message

norbi771

unread,
Jan 2, 2015, 8:19:02 AM1/2/15
to dcm...@googlegroups.com
Hello
Could somebody briefly explain how can I customize "findscu" or other tool from dcmche-toolkit in order to incorporate its functionality into my java app?
I.e. I'd like from my app execute e.g "c-find" and based on response received do some further actions.

let's use findscu as example,
From the command line I am getting some results, but when compile and run findscu from the IDE I get no output even if I pass parameters properly.

If skip a crucial parameter then I get the error like below, so I believe its get compiled fine.

findscu: missing required option -c
Try `findscu --help' for more information.


I'd like to skip passing arguments via command line.
Could you explain how to modify "findscu" code so it can be initialized from the code

Based on the sourcecode from findscu we have

      CLIUtils.configureConnect(main.remote, main.rq, cl);
     
CLIUtils.configureBind(main.conn, main.ae, cl);
     
CLIUtils.configure(main.conn, cl);
      main
.remote.setTlsProtocols(main.conn.getTlsProtocols());
      main
.remote.setTlsCipherSuites(main.conn.getTlsCipherSuites());
      configureServiceClass
(main, cl);
      configureKeys
(main, cl);
      configureOutput
(main, cl);
      configureCancel
(main, cl);


Could you explain or post example how can I quickly initiate communication with another dicom.
I can't find info of how can I achieve that.
For the tests I just did:


   
String[] args_ = {"-c", "DCM4...@10.10.10.67:11112", "-m", "StudyDate=19500101-", "-r", "NumberOfStudyRelatedSeries", "-r", "PatientName"};
...
   
CommandLine cl = parseComandLine(args_);




But it is not what I am looking for as final solution.

Also
I found http://stackoverflow.com/questions/22126774/dcm4che-getting-images-from-pacs which could be good starting point, but it seems to refer to old version of the toolkit.

In short I actually need to achieve the same or similar functionality as author of the stckoverflow post, ie to get some data from pacs in the most simple way.

Could you help ?

Thank you in advance.

Vincent Daanen

unread,
Jan 5, 2015, 4:23:25 AM1/5/15
to dcm...@googlegroups.com
Hi,

I'm using various "binaries" of dcm4che-3 to perform Dicom Communication tasks.
I'm developping in C++ and using the approach you described i.e. launch a process with a correct commandline..

If you don't want to use this approach, I think you have to user dcm4che3 as a library, not the already-built binaries.

BRW, why do not 'refuse' the solution of launching a Process ?

V
Reply all
Reply to author
Forward
0 new messages