Changeset 6715 for trunk/psphot/src/psphotFitGalaxies.c
- Timestamp:
- Mar 27, 2006, 4:31:17 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotFitGalaxies.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFitGalaxies.c
r6379 r6715 23 23 24 24 // only fit suspected extended sources 25 if (source->type != PM_SOURCE_ EXTENDED) continue;26 if (source->mode & PM_SOURCE_ BLEND) continue;25 if (source->type != PM_SOURCE_TYPE_EXTENDED) continue; 26 if (source->mode & PM_SOURCE_MODE_BLEND) continue; 27 27 28 28 // skip possible extended sources below fit threshold … … 32 32 status = pmSourceMoments (source, EXT_MOMENTS_RAD); 33 33 if (!status) { 34 source->mode |= PM_SOURCE_ FAIL; // better choice?34 source->mode |= PM_SOURCE_MODE_FAIL; // better choice? 35 35 continue; 36 36 } … … 46 46 47 47 // fit EXT (not PSF) model (set/unset the pixel mask) 48 psImageKeepCircle (source->mask, x, y, model->radius, "OR", P SPHOT_MASK_MARKED);48 psImageKeepCircle (source->mask, x, y, model->radius, "OR", PM_SOURCE_MASK_MARKED); 49 49 pmSourceFitModel (source, model, false); 50 psImageKeepCircle (source->mask, x, y, model->radius, "AND", ~P SPHOT_MASK_MARKED);50 psImageKeepCircle (source->mask, x, y, model->radius, "AND", ~PM_SOURCE_MASK_MARKED); 51 51 52 52 Niter += model[0].nIter; … … 55 55 // check if model fit is acceptable 56 56 if (pmModelFitStatus (model)) { 57 pm SourceSubModel(source->pixels, source->mask, model, false, false);58 source->mode |= PM_SOURCE_ SUBTRACTED;59 source->mode &= ~PM_SOURCE_ TEMPSUB;57 pmModelSub (source->pixels, source->mask, model, false, false); 58 source->mode |= PM_SOURCE_MODE_SUBTRACTED; 59 source->mode &= ~PM_SOURCE_MODE_TEMPSUB; 60 60 Nsub ++; 61 61 }
Note:
See TracChangeset
for help on using the changeset viewer.
