-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the CTP DicomAnonymizer in a stand-alone Java program #13
Comments
I’m doing precisely that sort of thing at the University of Wisconsin–Madison Department of Radiology. The method I’ve been using is pretty cumbersome but it does work. I’d be very interested in discussing this further with anyone interested, particularly as I’m hoping to present what I’m doing at SIIM next year and I’d like to have a better method by then. What’s the preferred way to have those kinds of conversations? |
The best place to have discussions like this is in the CTP Google Group:
As to your specific question, it is possible to write a stand-alone program to use the CTP DICOM Anonymizer. (For example, the DicomEditor program is such a stand-alone program, although since it has a GUI, it isn't what you want.) Assuming you have read http://mircwiki.rsna.org/index.php?title=Setting_Up_a_MIRC_Development_Environment and you are familiar with the code, the class you want is:
You should look at:
to see how to call it. Note that other CTP classes are used to encapsulate the anonymizer script, the lookup table, and the integer table. The last two are optional as long as the script doesn't reference them. You will have to include several libraries on the classpath (at least CTP.jar, util.jar, and dcm4che.jar) to get access to all the classes that you – and the anonymized – need. If you look around line 153 in DicomAnonymizer, you'll see that the call to the DICOMAnonymizer class is very simple: DAScript dascript = DAScript.getInstance(scriptFile); JP From: tfpenn Hi, I'm looking for a way to really automate the anonymization process using the CTP dicom anonymizer as a stand-alone Java program without the gui. Is this possible? If so, can you recommend any examples? Thank you. — |
I just sent this reply to the other fellow asking the same question I don't know if you can see that thread. The best place to have discussions like this is in the CTP Google Group:
As to your specific question, it is possible to write a stand-alone program to use the CTP DICOM Anonymizer. (For example, the DicomEditor program is such a stand-alone program, although since it has a GUI, it isn't what you want.) Assuming you have read http://mircwiki.rsna.org/index.php?title=Setting_Up_a_MIRC_Development_Environment and you are familiar with the code, the class you want is:
You should look at:
to see how to call it. Note that other CTP classes are used to encapsulate the anonymizer script, the lookup table, and the integer table. The last two are optional as long as the script doesn't reference them. You will have to include several libraries on the classpath (at least CTP.jar, util.jar, and dcm4che.jar) to get access to all the classes that you – and the anonymized – need. If you look around line 153 in DicomAnonymizer, you'll see that the call to the DICOMAnonymizer class is very simple: DAScript dascript = DAScript.getInstance(scriptFile); JP From: Daryn S. Belden I’m doing precisely that sort of thing at the University of Wisconsin–Madison Department of Radiology. The method I’ve been using is pretty cumbersome but it does work. I’d be very interested in discussing this further with anyone interested, particularly as I’m hoping to present what I’m doing at SIIM next year and I’d like to have a better method by then. What’s the preferred way to have those kinds of conversations? — |
Hi,
I'm looking for a way to really automate the anonymization process using the CTP dicom anonymizer as a stand-alone Java program without the gui. Is this possible? If so, can you recommend any examples?
Thank you.
The text was updated successfully, but these errors were encountered: