Changeset 36861
- Timestamp:
- Jun 13, 2014, 8:48:33 AM (12 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 2 edited
-
camera/pmReadoutFake.c (modified) (3 diffs)
-
imcombine/pmPSFEnvelope.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmReadoutFake.c
r36623 r36861 20 20 #include "pmMoments.h" 21 21 #include "pmModelFuncs.h" 22 #include "pmModelClass.h" 22 23 #include "pmModel.h" 23 24 #include "pmModelUtils.h" 24 #include "pmModelClass.h"25 25 #include "pmSourceMasks.h" 26 26 #include "pmSourceExtendedPars.h" … … 122 122 } 123 123 124 flux /= normModel-> modelFlux(normModel->params);124 flux /= normModel->class->modelFlux(normModel->params); 125 125 psFree(normModel); 126 126 } … … 164 164 float fakeRadius = 1.0; // Radius of fake source 165 165 if (isfinite(minFlux)) { 166 fakeRadius = PS_MAX(fakeRadius, fakeModel-> modelRadius(fakeModel->params, minFlux));166 fakeRadius = PS_MAX(fakeRadius, fakeModel->class->modelRadius(fakeModel->params, minFlux)); 167 167 } 168 168 if (radius > 0) { -
trunk/psModules/src/imcombine/pmPSFEnvelope.c
r36623 r36861 20 20 #include "pmMoments.h" 21 21 #include "pmModelFuncs.h" 22 #include "pmModelClass.h" 22 23 #include "pmModel.h" 23 24 #include "pmModelUtils.h" 24 #include "pmModelClass.h"25 25 #include "pmSourceMasks.h" 26 26 #include "pmSourceExtendedPars.h" … … 168 168 continue; 169 169 } 170 model-> modelSetLimits(PM_MODEL_LIMITS_MODERATE);170 model->class->modelSetLimits(PM_MODEL_LIMITS_MODERATE); 171 171 bool limits = true; // Model within limits? 172 172 for (int j = 0; j < model->params->n && limits; j++) { 173 if (!model-> modelLimits(PS_MINIMIZE_PARAM_MIN, j, model->params->data.F32, NULL) ||174 !model-> modelLimits(PS_MINIMIZE_PARAM_MAX, j, model->params->data.F32, NULL)) {173 if (!model->class->modelLimits(PS_MINIMIZE_PARAM_MIN, j, model->params->data.F32, NULL) || 174 !model->class->modelLimits(PS_MINIMIZE_PARAM_MAX, j, model->params->data.F32, NULL)) { 175 175 limits = false; 176 176 } … … 246 246 continue; 247 247 } 248 float srcRadius = model-> modelRadius(model->params, PS_SQR(VARIANCE_VAL)); // Radius for source248 float srcRadius = model->class->modelRadius(model->params, PS_SQR(VARIANCE_VAL)); // Radius for source 249 249 psFree(model); 250 250 if (srcRadius == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
