Changeset 4949 for trunk/psphot/src/psModulesUtils.c
- Timestamp:
- Sep 5, 2005, 8:44:00 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psModulesUtils.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psModulesUtils.c
r4946 r4949 4 4 5 5 // this sets and clears bit 0x80 6 bool pmSourceLocalSky_EAM (p sSource *source,6 bool pmSourceLocalSky_EAM (pmSource *source, 7 7 psStatsOptions statsOptions, 8 8 psF32 Radius) … … 36 36 # define PM_SOURCE_FIT_MODEL_NUM_ITERATIONS 15 37 37 # define PM_SOURCE_FIT_MODEL_TOLERANCE 0.1 38 bool pmSourceFitModel_EAM (psSource *source,39 psModel *model,40 const bool PSF)38 bool pmSourceFitModel_EAM (pmSource *source, 39 pmModel *model, 40 const bool PSF) 41 41 { 42 42 PS_PTR_CHECK_NULL(source, false); … … 55 55 // tests below could be conditions (!NULL) 56 56 57 p sModelFunc modelFunc = psModelFunc_GetFunction (model->type);58 p sModelLimits modelLimits = psModelLimits_GetFunction (model->type);57 pmModelFunc modelFunc = pmModelFunc_GetFunction (model->type); 58 pmModelLimits modelLimits = pmModelLimits_GetFunction (model->type); 59 59 60 60 psVector *params = model->params; … … 177 177 /****************************************************************************** 178 178 pmSourceMoments(source, radius): this function takes a subImage defined in the 179 p sSource data structure, along with the peak location, and determines the179 pmSource data structure, along with the peak location, and determines the 180 180 various moments associated with that peak. 181 181 182 182 Requires the following to have been created: 183 p sSource184 p sSource->peak185 p sSource->pixels183 pmSource 184 pmSource->peak 185 pmSource->pixels 186 186 187 187 XXX: The peak calculations are done in image coords, not subImage coords. … … 191 191 # define VALID_RADIUS(X,Y) (((R2) >= (PS_SQR(X) + PS_SQR(Y))) ? 1 : 0) 192 192 193 bool pmSourceMoments_EAM(p sSource *source,193 bool pmSourceMoments_EAM(pmSource *source, 194 194 psF32 radius) 195 195 { … … 310 310 } 311 311 312 bool pmModelFitStatus (p sModel *model) {312 bool pmModelFitStatus (pmModel *model) { 313 313 314 314 bool status; 315 315 316 p sModelFitStatusFunc statusFunc = psModelFitStatusFunc_GetFunction (model->type);316 pmModelFitStatusFunc statusFunc = pmModelFitStatusFunc_GetFunction (model->type); 317 317 status = statusFunc (model); 318 318
Note:
See TracChangeset
for help on using the changeset viewer.
