Changeset 25941 for trunk/ippScripts/scripts/dist_component.pl
- Timestamp:
- Oct 26, 2009, 3:08:18 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/dist_component.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/dist_component.pl
r25677 r25941 41 41 my %diff_cleaned = ( 'PPSUB.OUTPUT' => 'image', 42 42 'PPSUB.OUTPUT.MASK' => 'mask', 43 'PPSUB.OUTPUT.VARIANCE' => 'variance' ); 43 'PPSUB.OUTPUT.VARIANCE' => 'variance', 44 'PPSUB.INVERSE' => 'inv_image', 45 'PPSUB.INVERSE.MASK' => 'inv_mask', 46 'PPSUB.INVERSE.VARIANCE' => 'inv_variance' ); 44 47 my %stack_cleaned = ( 'PPSTACK.OUTPUT' => 'image', 45 48 'PPSTACK.OUTPUT.MASK' => 'mask', … … 149 152 150 153 my ($image, $mask, $variance); 154 my ($inv_image, $inv_mask, $inv_variance); 151 155 152 156 # foreach my $file_rule (keys %$file_list) { … … 198 202 } elsif ($image_type eq 'variance') { 199 203 $variance = $file_name;; 204 } elsif ($image_type eq 'inv_image') { 205 $inv_image = $file_name; 206 } elsif ($image_type eq 'inv_mask') { 207 $inv_mask = $file_name;; 208 } elsif ($image_type eq 'inv_variance') { 209 $inv_variance = $file_name;; 200 210 } else { 201 211 &my_die("invalid image type found: $image_type", $dist_id, $component, … … 246 256 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 247 257 &my_die("Unable to perform $command: $error_code", $dist_id, $component, $error_code); 258 } 259 if ($inv_image) { 260 $command = "$streaksrelease -stage $stage -image $inv_image -outroot $tmpdir"; 261 $command .= " -mask $inv_mask" if $inv_mask; 262 $command .= " -weight $inv_variance" if $inv_variance; 263 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 264 run(command => $command, verbose => $verbose); 265 unless ($success) { 266 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 267 &my_die("Unable to perform $command: $error_code", $dist_id, $component, $error_code); 268 } 248 269 } 249 270 }
Note:
See TracChangeset
for help on using the changeset viewer.
