Changeset 23966 for trunk/ippScripts/scripts/magic_process.pl
- Timestamp:
- Apr 24, 2009, 2:20:13 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/magic_process.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_process.pl
r23908 r23966 37 37 38 38 # Parse the command-line arguments 39 my ($magic_id, $node, $camera, $dbname, $outroot, $ save_temps, $verbose, $no_update, $no_op, $logfile);39 my ($magic_id, $node, $camera, $dbname, $outroot, $template_uri, $save_temps, $verbose, $no_update, $no_op, $logfile); 40 40 41 41 GetOptions( … … 45 45 'dbname=s' => \$dbname, # Database name 46 46 'outroot=s' => \$outroot, # Output root name 47 'template_uri=s' => \$template_uri,# uri of diff template 47 48 'save-temps' => \$save_temps, # Save temporary files? 48 49 'verbose' => \$verbose, # Print stuff? … … 58 59 defined $node and 59 60 defined $camera and 60 defined $outroot; 61 defined $outroot and 62 defined $template_uri; 61 63 62 64 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $magic_id, $node, $PS_EXIT_CONFIG_ERROR ); # IPP configuration … … 136 138 } 137 139 138 $command .= " --detect --image $image --mask $mask --weight $weight"; 140 my $template = $ipprc->file_resolve($template_uri); 141 &my_die("failed to resolve template_uri: $template_uri", $magic_id, $node, $PS_EXIT_DATA_ERROR) 142 if !($template); 143 144 $command .= " --detect --image $image --mask $mask --weight $weight -k $template"; 139 145 140 146 # set threshold to 4 sigma
Note:
See TracChangeset
for help on using the changeset viewer.
