What I did:
1) I downloaded the latest version of the executable file, I took dcmodify.exe from it and an image.dcm and put all in C:\Users\Public\Documents
2) I wrote a fast java code in order to modify a DICOM metadata, but despite trying to change the command line, I could not make any variations in the image metadata.
Main body:
Code: Select all
try {
System.out.println("Try to modify a.dcm ...");
Process process = new ProcessBuilder("C:\\Users\\Public\\Documents\\dcmodify.exe",
"dcmodify -i \"(0010,0010)= Mike\" a.dcm").start();
System.out.println("done");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}