Mercurial > hg > minc-tools
changeset 1264:a3df3eef40e2
Added -i flag to {dump,extract}_acr_nema to be tolerant of non-fatal protocol
errors in the files.
author | neelin <neelin> |
---|---|
date | Fri, 28 Apr 2000 15:25:25 +0000 |
parents | b8a8be977e57 |
children | 85a8de40f9bf |
files | conversion/mri_to_minc/dicom_to_minc.pl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/conversion/mri_to_minc/dicom_to_minc.pl +++ b/conversion/mri_to_minc/dicom_to_minc.pl @@ -196,7 +196,7 @@ # Dump the header local($group, $element, $data); open(DUMP, "extract $file_offset -1 $filename | " . - "dump_acr_nema - $header_maxid|"); + "dump_acr_nema -i - $header_maxid|"); while (<DUMP>) { chop; if (/^\s*(0x[\da-f]{4,4})\s+(0x[\da-f]{4,4})\s+length = \d+ :(.*)$/) { @@ -367,7 +367,7 @@ "extract " . $specific_file_info{'file_offset'} . " -1 $cur_file" . - " | extract_acr_nema " . + " | extract_acr_nema -i " . $specific_file_info{'pixel_data_group'} . " " . $specific_file_info{'pixel_data_element'} . " " . " | byte_swap ";