IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2006, 8:42:44 AM (19 years ago)
Author:
eugene
Message:

added ipprc.convert_filename method, replaced workdir conversions with convert_filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/detrend_norm_apply.pl

    r9959 r10419  
    5959
    6060my ($vol, $dir, $file) = File::Spec->splitpath( $input );
    61 $input = File::Spec->rel2abs( $input, $ipprc->workdir() );
     61$input = $ipprc->convert_filename ( $input );
    6262
    6363# Output name
    6464my $outputRoot = $camera . '.' . $detType . '.norm.' . $detId . '.' . $iter; # Root output name
    65 $outputRoot = File::Spec->rel2abs( File::Spec->catpath( $vol, $dir, $outputRoot ), $ipprc->workdir() );
     65$outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot );
     66$outputRoot = $ipprc->convert_filename ($outputRoot);
    6667
    6768my $output = $ipprc->filename("PPIMAGE.OUTPUT", $outputRoot, $classId);
     
    99100
    100101# Update the database
    101 $output = File::Spec->abs2rel( $output, $ipprc->workdir() );
    102 $b1name = File::Spec->abs2rel( $b1name, $ipprc->workdir() );
    103 $b2name = File::Spec->abs2rel( $b2name, $ipprc->workdir() );
     102$output = $ipprc->convert_filename ( $output );
     103$b1name = $ipprc->convert_filename ( $b1name );
     104$b2name = $ipprc->convert_filename ( $b2name );
    104105unless ($no_update) {
    105106    my $command = "$dettool -addnormalizedimfile -det_id $detId -iteration $iter -class_id $classId ".
Note: See TracChangeset for help on using the changeset viewer.