IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 25, 2012, 5:33:33 PM (14 years ago)
Author:
watersc1
Message:

Hardcoded version that gets the right solution. I wanted to save this before attempting to clean up the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20120906/pswarp/src/pswarpTransformReadout.c

    r34442 r34470  
    6060    // pswarpMapGridFromImage builds a set of locally-linear maps which convert the
    6161    // output coordinates to input coordinates
    62     pswarpMapGrid *grid = pswarpMapGridFromImage(input, output, nGridX, nGridY);
    63 
     62    pswarpMapGrid *grid;
     63    if (psMetadataLookupBool(NULL,config->arguments,"BACKGROUND_WARPING")) {
     64      grid = pswarpMapGridFromImageForBackground(input, output, nGridX, nGridY);
     65    }
     66    else {
     67      grid = pswarpMapGridFromImage(input, output, nGridX, nGridY);
     68    }
    6469    // XXX optionally modify the grid based on this result and force the maxError < XXX
    6570    double maxError = pswarpMapGridMaxError(grid); // Maximum (positional) error from using grid
Note: See TracChangeset for help on using the changeset viewer.