IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 5, 2005, 12:13:28 PM (21 years ago)
Author:
Paul Price
Message:

Cleaning up stac.c to work with TESTING. shiftSize now working. Added stacWriteMaps.

File:
1 edited

Legend:

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

    r3666 r3667  
    8383#ifdef TESTING
    8484        psImage *rejmap = psImageAlloc(nxInput, nyInput, PS_TYPE_F32); // The rejections in the source frame
    85         psImage *grad = psImageAlloc(nxInput, nyInput, PS_TYPE_F32);    // The gradient image
     85        psImage *gradient = psImageAlloc(nxInput, nyInput, PS_TYPE_F32);        // The gradient image
    8686#endif
    8787        psImage *reject = rejected->data[i]; // Pull out the mask in the output frame
     
    147147
    148148#ifdef TESTING
    149                         grad->data.F32[y][x] = stacGradient(inputs->data[i], x, y) / meanGrads;
     149                        gradient->data.F32[y][x] = stacGradient(inputs->data[i], x, y) / meanGrads;
    150150#endif
    151151
     
    153153                            mask->data.U8[y][x] = 1;
    154154                            nBad++;
     155
    155156#ifdef CRFLUX
    156157                            fprintf(crs, "%d %d --> %f %f %f\n", x, y,
     
    158159                                    stacGradient(inputs->data[i], x, y));
    159160#endif
     161
    160162                        } else {
    161163                            mask->data.U8[y][x] = 0;
     
    200202        }
    201203        psTrace("stac", 1, "Rejection map written to %s\n", rejmapName);
    202         if (!psFitsWriteImage(gradFile, NULL, grad, 0, NULL)) {
     204        if (!psFitsWriteImage(gradFile, NULL, gradient, 0, NULL)) {
    203205            psErrorStackPrint(stderr, "Unable to write image: %s\n", gradName);
    204206        }
     
    208210        psFree(gradFile);
    209211        psFree(rejmap);
    210         psFree(grad);
     212        psFree(gradient);
    211213#endif
    212214
Note: See TracChangeset for help on using the changeset viewer.