- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psModules (modified) (1 prop)
-
psModules/src/objects (modified) (1 prop)
-
psModules/src/objects/pmSourceFitPCM.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psModules
- Property svn:mergeinfo set to
-
branches/meh_branches/ppstack_test/psModules/src/objects
- Property svn:ignore
-
old new 5 5 *.la 6 6 *.lo 7 pmSourceIO_CMF_PS1_V1.c 8 pmSourceIO_CMF_PS1_V2.c 9 pmSourceIO_CMF_PS1_V3.c 10 pmSourceIO_CMF_PS1_V4.c 11 pmSourceIO_CMF_PS1_V3.v1.c 12 pmSourceIO_CMF_PS1_V1.v1.c 13 pmSourceIO_CMF_PS1_V2.v1.c 14
-
- Property svn:ignore
-
branches/meh_branches/ppstack_test/psModules/src/objects/pmSourceFitPCM.c
r31153 r33415 48 48 // convolved model image. 49 49 50 # define TIMING 0 51 50 52 bool pmSourceFitPCM (pmPCMdata *pcm, pmSource *source, pmSourceFitOptions *fitOptions, psImageMaskType maskVal, psImageMaskType markVal, int psfSize) { 51 53 54 if (TIMING) { psTimerStart ("pmSourceFitPCM"); } 55 52 56 psVector *params = pcm->modelConv->params; 53 57 psVector *dparams = pcm->modelConv->dparams; … … 63 67 64 68 psImage *covar = psImageAlloc (params->n, params->n, PS_TYPE_F32); 69 // NOTE : 4 allocs to here 65 70 71 float t1, t2, t3, t4, t5; 72 if (TIMING) { t1 = psTimerMark ("pmSourceFitPCM"); } 73 74 // NOTE : 996 allocs in here 66 75 bool fitStatus = pmPCM_MinimizeChisq (myMin, covar, params, source, pcm); 76 if (TIMING) { t2 = psTimerMark ("pmSourceFitPCM"); } 77 67 78 for (int i = 0; i < dparams->n; i++) { 68 79 if ((pcm->constraint->paramMask != NULL) && pcm->constraint->paramMask->data.PS_TYPE_VECTOR_MASK_DATA[i]) … … 76 87 } 77 88 psTrace ("psphot", 4, "niter: %d, chisq: %f", myMin->iter, myMin->value); 89 if (TIMING) { t3 = psTimerMark ("pmSourceFitPCM"); } 78 90 79 91 // renormalize output model image (generated by fitting process) … … 97 109 pmSourceChisqUnsubtracted (source, pcm->modelConv, maskVal); 98 110 } 111 if (TIMING) { t4 = psTimerMark ("pmSourceFitPCM"); } 99 112 100 113 // set the model success or failure status … … 114 127 115 128 source->mode |= PM_SOURCE_MODE_FITTED; // XXX is this needed? 129 if (TIMING) { t5 = psTimerMark ("pmSourceFitPCM"); } 130 131 if (TIMING) { 132 fprintf (stderr, "nIter: %2d, npix: %5d, t1: %6.4f, t2: %6.4f, t3: %6.4f, t4: %6.4f, t5: %6.4f\n", myMin->iter, pcm->nPix, t1, t2, t3, t4, t5); 133 } 116 134 117 135 psFree(myMin); … … 121 139 } 122 140 141 // XXX deprecate this function or merge with the empirical model 123 142 bool pmSourceModelGuessPCM (pmPCMdata *pcm, pmSource *source, psImageMaskType maskVal, psImageMaskType markVal) { 124 143
Note:
See TracChangeset
for help on using the changeset viewer.
