Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run dcm4che tools from command line after compilation?

I want to use the dcm2json tool, part of the dcm4che3 toolkit, but I cannot figure out how to compile and execute the command line tool. Having run

$ git clone https://github.com/dcm4che/dcm4che.git
$ cd dcm4che
$ mvn install

in the dcm4che directory root as outlined in the installation manual, all I get from compilation is a jar dcm4che/dcm4che-tool/dcm4che-tool-dcm2json/target/dcm4che-tool-dcm2json-3.3.5-SNAPSHOT.jar and a class file dcm4che/dcm4che-tool/dcm4che-tool-dcm2json/target/classes/org/dcm4che3/tool/dcm2json/Dcm2Json.class. There is no tool to execute. I can execute the standalone tools downloaded from http://sourceforge.net/projects/dcm4che/files/dcm4che3/3.3.3/ but sadly dcm2json isn't included in this (most recent sourceforge) release.

Does anyone know from where I can download a dcm2json executable or how to compile it? Any help would be really, really appreciated.

(Yes I did Google. A lot.)

like image 354
Kasper Marstal Avatar asked Oct 17 '25 11:10

Kasper Marstal


1 Answers

dcm4che project has a sub-project called dcm4che-assembly that after running mvn install on the parent dcm4che project, produces a zip that assembles all runnable artifacts, including dcm2json.

If you are curious about how you can get the sh/bat script to run it, then dcm4che-assembly is where you have to look.

In fact, this zip assembly is the same as you download in the binary package.

Hope it helps!

like image 169
malaguna Avatar answered Oct 20 '25 00:10

malaguna