Changeset 36859 for trunk/psModules/src/objects/pmPSF.c
- Timestamp:
- Jun 13, 2014, 8:35:36 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSF.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSF.c
r36623 r36859 37 37 #include "pmMoments.h" 38 38 #include "pmModelFuncs.h" 39 #include "pmModelClass.h" 39 40 #include "pmModel.h" 40 41 #include "pmModelUtils.h" 41 #include "pmModelClass.h"42 42 #include "pmSourceMasks.h" 43 43 #include "pmSourceExtendedPars.h" … … 329 329 // convert the parameters used in the fitted source model to the psEllipseAxes representation 330 330 // (major,minor,theta) 331 psEllipseAxes pmPSF_ModelToAxes (psF32 *modelPar, pmModelType type)331 psEllipseAxes pmPSF_ModelToAxes (psF32 *modelPar, bool useReff) 332 332 { 333 333 psEllipseAxes axes; … … 338 338 PS_ASSERT_PTR_NON_NULL(modelPar, axes); 339 339 340 bool useReff = pmModelUseReff (type);341 340 pmModelParamsToAxes (&axes, modelPar[PM_PAR_SXX], modelPar[PM_PAR_SXY], modelPar[PM_PAR_SYY], useReff); 342 341 return axes; … … 345 344 // convert the psEllipseAxes representation (major,minor,theta) to the parameters used in the 346 345 // fitted source model 347 bool pmPSF_AxesToModel (psF32 *modelPar, psEllipseAxes axes, pmModelType type)346 bool pmPSF_AxesToModel (psF32 *modelPar, psEllipseAxes axes, bool useReff) 348 347 { 349 348 PS_ASSERT_PTR_NON_NULL(modelPar, false); … … 357 356 } 358 357 359 bool useReff = pmModelUseReff (type);360 358 pmModelAxesToParams (&modelPar[PM_PAR_SXX], &modelPar[PM_PAR_SXY], &modelPar[PM_PAR_SYY], axes, useReff); 361 359 return true; … … 420 418 421 419 // get the model full-width at half-max 422 float fwhmMajor = 2*model-> modelRadius (model->params, 0.5);420 float fwhmMajor = 2*model->class->modelRadius (model->params, 0.5); 423 421 424 422 # if (0) 425 423 psF32 *params = model->params->data.F32; // Model parameters 426 psEllipseAxes axes = pmPSF_ModelToAxes(params, MAX_AXIS_RATIO, model-> type); // Ellipse axes424 psEllipseAxes axes = pmPSF_ModelToAxes(params, MAX_AXIS_RATIO, model->class->useReff); // Ellipse axes 427 425 428 426 // Curiously, the minor axis can be larger than the major axis, so need to check.
Note:
See TracChangeset
for help on using the changeset viewer.
