IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 5, 2005, 2:08:16 PM (21 years ago)
Author:
Paul Price
Message:

Remaking shift into a program to shift a single image. It seems to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacSize.c

    r3666 r3669  
    1212    int nImages = images->n;            // Number of input images
    1313    assert(maps->n == nImages);
     14    assert(outnx && outny);             // Must be able to write to these
    1415
    1516    psPlane *inCoord = psAlloc(sizeof(psPlane)); // Input coordinates
     
    9293
    9394    // Tweak the maps to account for the offset
    94     *xMapDiff = floor(xMin);
    95     *yMapDiff = floor(yMin);
     95    if (xMapDiff != NULL) {
     96        *xMapDiff = floor(xMin);
     97    }
     98    if (yMapDiff != NULL) {
     99        *yMapDiff = floor(yMin);
     100    }
    96101    for (int i = 0; i < nImages; i++) {
    97102        psPlaneTransform *map = maps->data[i]; // The map of interest
Note: See TracChangeset for help on using the changeset viewer.