- Timestamp:
- Oct 29, 2007, 2:59:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071023/psModules/src/objects/pmPSF.c
r15089 r15418 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $9 * @date $Date: 2007- 09-29 00:15:32$8 * @version $Revision: 1.32.2.1 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-10-30 00:59:23 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 81 81 static void pmPSFFree (pmPSF *psf) 82 82 { 83 84 if (psf == NULL) 83 if (psf == NULL) { 85 84 return; 85 } 86 86 87 87 psFree (psf->ChiTrend); … … 205 205 } 206 206 207 bool psMemCheckPSF(psPtr ptr) 208 { 209 PS_ASSERT_PTR(ptr, false); 210 return ( psMemGetDeallocator(ptr) == (psFreeFunc) pmPSFFree); 211 } 212 213 214 207 215 // the PSF models the \sigma_{xy} variation of the elliptical contour as a function of position in the image with a 208 216 // polynomial. an individual object has a contour of the form (x^2/2sx^2) + (y^2/2sy^2) + sxy*x*y … … 217 225 double pmPSF_SXYfromModel (psF32 *modelPar) 218 226 { 227 PS_ASSERT_PTR_NON_NULL(modelPar, NAN); 219 228 220 229 double SXX = modelPar[PM_PAR_SXX]; … … 229 238 double pmPSF_SXYtoModel (psF32 *fittedPar) 230 239 { 240 PS_ASSERT_PTR_NON_NULL(fittedPar, NAN); 231 241 232 242 double SXX = fittedPar[PM_PAR_SXX]; … … 247 257 bool pmPSF_FitToModel (psF32 *fittedPar, float minMinorAxis) 248 258 { 259 PS_ASSERT_PTR_NON_NULL(fittedPar, false); 260 249 261 psEllipsePol pol; 250 262 … … 272 284 psEllipsePol pmPSF_ModelToFit (psF32 *modelPar) 273 285 { 286 // XXX: must assert non-NULL input parameter 287 // PS_ASSERT_PTR_NON_NULL(modelPar, NAN); 288 274 289 psEllipseShape shape; 275 290 … … 289 304 psEllipseShape shape; 290 305 psEllipseAxes axes; 306 // XXX: must assert non-NULL input parameter 307 // PS_ASSERT_PTR_NON_NULL(modelPar, axes); 291 308 292 309 shape.sx = modelPar[PM_PAR_SXX] / M_SQRT2; … … 310 327 bool pmPSF_AxesToModel (psF32 *modelPar, psEllipseAxes axes) 311 328 { 329 PS_ASSERT_PTR_NON_NULL(modelPar, false); 330 312 331 if ((axes.major <= 0) || (axes.minor <= 0)) { 313 332 modelPar[PM_PAR_SXX] = 0.0; … … 374 393 bool pmGrowthCurveGenerate (pmReadout *readout, pmPSF *psf, bool ignore, psMaskType maskVal, psMaskType mark) 375 394 { 395 PS_ASSERT_PTR_NON_NULL(readout, false); 396 PS_ASSERT_PTR_NON_NULL(readout->image, false); 376 397 377 398 // bool status;
Note:
See TracChangeset
for help on using the changeset viewer.
