IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20307 for trunk/psModules


Ignore:
Timestamp:
Oct 21, 2008, 4:11:36 PM (18 years ago)
Author:
Paul Price
Message:

Propagating changes to psImageInterpolate.h

Location:
trunk/psModules/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAMaskWeight.c

    r20095 r20307  
    453453    psImage *weight = readout->weight;  // Weight map
    454454
    455     psImageInterpolateOptions *interp = psImageInterpolateOptionsAlloc(mode, image, weight, mask, maskVal,
    456                                                                        NAN, NAN, maskBad, maskPoor, poorFrac);
     455    psImageInterpolation *interp = psImageInterpolationAlloc(mode, image, weight, mask, maskVal,
     456                                                             NAN, NAN, maskBad, maskPoor, poorFrac, 0);
    457457    interp->shifting = false;           // Turn off "exact shifts" so we get proper interpolation
    458458
  • trunk/psModules/src/objects/pmModel.c

    r15977 r20307  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2008-01-02 20:36:36 $
     8 *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2008-10-22 02:11:08 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    222222    psImage *myRx = NULL;
    223223    psImage *myRy = NULL;
    224     psImageInterpolateOptions *Ro = NULL;
    225     psImageInterpolateOptions *Rx = NULL;
    226     psImageInterpolateOptions *Ry = NULL;
     224    psImageInterpolation *Ro = NULL;
     225    psImageInterpolation *Rx = NULL;
     226    psImageInterpolation *Ry = NULL;
    227227    if (model->residuals && (mode & (PM_MODEL_OP_RES0 | PM_MODEL_OP_RES1))) {
    228228        // if the residual image and object image don't match,
     
    274274        }
    275275
    276         Ro = psImageInterpolateOptionsAlloc(PS_INTERPOLATE_BILINEAR, myRo, NULL, mask, 0, 0.0, 0.0, 1, 0, 0.0);
    277         Rx = psImageInterpolateOptionsAlloc(PS_INTERPOLATE_BILINEAR, myRx, NULL, NULL, 0, 0.0, 0.0, 1, 0, 0.0);
    278         Ry = psImageInterpolateOptionsAlloc(PS_INTERPOLATE_BILINEAR, myRy, NULL, NULL, 0, 0.0, 0.0, 1, 0, 0.0);
     276        Ro = psImageInterpolationAlloc(PS_INTERPOLATE_BILINEAR, myRo, NULL, mask, 0, 0.0, 0.0, 1, 0, 0.0, 0);
     277        Rx = psImageInterpolationAlloc(PS_INTERPOLATE_BILINEAR, myRx, NULL, NULL, 0, 0.0, 0.0, 1, 0, 0.0, 0);
     278        Ry = psImageInterpolationAlloc(PS_INTERPOLATE_BILINEAR, myRy, NULL, NULL, 0, 0.0, 0.0, 1, 0, 0.0, 0);
    279279
    280280    }
  • trunk/psModules/src/objects/pmSourcePhotometry.c

    r20077 r20307  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2008-10-13 01:59:05 $
     5 *  @version $Revision: 1.46 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2008-10-22 02:11:08 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    122122    if (source->modelFits) {
    123123      for (int i = 0; i < source->modelFits->n; i++) {
    124         pmModel *model = source->modelFits->data[i];
    125         status = pmSourcePhotometryModel (&model->mag, model);
     124        pmModel *model = source->modelFits->data[i];
     125        status = pmSourcePhotometryModel (&model->mag, model);
    126126      }
    127127      if (source->modelEXT) {
    128         source->extMag = source->modelEXT->mag;
     128        source->extMag = source->modelEXT->mag;
    129129      }
    130130    } else {
    131131      if (source->modelEXT) {
    132         status = pmSourcePhotometryModel (&source->extMag, source->modelEXT);
     132        status = pmSourcePhotometryModel (&source->extMag, source->modelEXT);
    133133      }
    134134    }
     
    177177
    178178        if (!psImageShiftMask(&flux, &mask, source->pixels, source->maskObj, maskVal, dx, dy,
    179                               NAN, 0xff, PS_INTERPOLATE_BICUBE)) {
     179                              NAN, 0xff, PS_INTERPOLATE_BIQUADRATIC)) {
    180180            // Not much we can do about it
    181181            psErrorClear();
     
    256256        }
    257257        if (mode & PM_SOURCE_PHOT_APCORR) {
    258             rflux   = pow (10.0, 0.4*source->psfMag);
    259             source->apMag -= PS_SQR(model->radiusFit)*rflux * psf->skyBias + psf->skySat / rflux;
     258            rflux   = pow (10.0, 0.4*source->psfMag);
     259            source->apMag -= PS_SQR(model->radiusFit)*rflux * psf->skyBias + psf->skySat / rflux;
    260260        }
    261261    }
     
    333333    }
    334334    if (apSum <= 0) {
    335         *apMag = NAN;
     335        *apMag = NAN;
    336336        return true;
    337337    }
Note: See TracChangeset for help on using the changeset viewer.