Changeset 25755 for trunk/psphot/src/psphotFitSourcesLinear.c
- Timestamp:
- Oct 2, 2009, 3:12:47 PM (17 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphotFitSourcesLinear.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src
- Property svn:ignore
-
old new 18 18 psphotVersionDefinitions.h 19 19 psphotMomentsStudy 20 psphotPetrosianStudy
-
- Property svn:ignore
-
trunk/psphot/src/psphotFitSourcesLinear.c
r25383 r25755 76 76 if (source->tmpFlags & PM_SOURCE_TMPF_SUBTRACTED) continue; 77 77 } else { 78 if (source->mode & PM_SOURCE_MODE_BLEND) continue;78 // if (source->mode & PM_SOURCE_MODE_BLEND) continue; 79 79 } 80 80 … … 186 186 if (SKY_FIT_LINEAR) { 187 187 psSparseBorderSolve (&norm, &skyfit, constraint, border, 5); 188 fprintf (stderr, "skyfit: %f\n", skyfit->data.F32[0]);188 psLogMsg ("psphot", PS_LOG_MINUTIA, "skyfit: %f\n", skyfit->data.F32[0]); 189 189 } else { 190 190 norm = psSparseSolve (NULL, constraint, sparse, 5); … … 215 215 // subtract object 216 216 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 217 source->tmpFlags |= PM_SOURCE_TMPF_SUBTRACTED;218 217 } 219 218 psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "sub models: %f sec (%d elements)\n", psTimerMark ("psphot.linear"), sparse->Nelem); … … 239 238 240 239 psphotVisualShowResidualImage (readout); 241 psphotVisualShowFlags (sources);240 // psphotVisualShowFlags (sources); 242 241 243 242 return true; … … 264 263 float x = model->params->data.F32[PM_PAR_XPOS]; 265 264 float y = model->params->data.F32[PM_PAR_YPOS]; 266 psImageMaskCircle (source->maskView, x, y, model-> radiusFit, "AND", PS_NOT_IMAGE_MASK(markVal));265 psImageMaskCircle (source->maskView, x, y, model->fitRadius, "AND", PS_NOT_IMAGE_MASK(markVal)); 267 266 } 268 267
Note:
See TracChangeset
for help on using the changeset viewer.
