Created
October 2, 2010 22:25
-
-
Save sween/608052 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Rip through some DICOM, and anonymize | |
| require 'rubygems' | |
| require 'dicom' | |
| require 'benchmark' | |
| a = DICOM::Anonymizer.new | |
| a.add_folder("/Users/sween/Desktop/DICOMA") | |
| puts Benchmark.measure { a.execute } | |
| Here is my benchmark from rbx: | |
| ron-sweeneys-macbook:desktop sween$ rbx anon_dicom_rbx.rb | |
| ******************************************************* | |
| Initiating anonymization process. | |
| Searching for files... | |
| Done. | |
| 362 files have been identified in the specified folder(s). | |
| Separate write folder not specified. Will overwrite existing DICOM files. | |
| Initiating read/update/write process (This may take some time)... | |
| Anonymization process completed! | |
| All DICOM objects were SUCCESSFULLY written as DICOM files. | |
| Elapsed time: 147.6 seconds | |
| ******************************************************* | |
| 147.684140 0.000000 147.684140 (147.684125) | |
| Here is my benchmark from missionary Ruby 1.8.6 | |
| ron-sweeneys-macbook:desktop sween$ ruby anon_dicom.rb | |
| ******************************************************* | |
| Initiating anonymization process. | |
| Searching for files... | |
| Done. | |
| 362 files have been identified in the specified folder(s). | |
| Separate write folder not specified. Will overwrite existing DICOM files. | |
| Initiating read/update/write process (This may take some time)... | |
| Anonymization process completed! | |
| All DICOM objects were SUCCESSFULLY written as DICOM files. | |
| Elapsed time: 25.0 seconds | |
| ******************************************************* | |
| 6.310000 1.990000 8.300000 ( 25.078275) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment