Changeset 25755 for trunk/psphot/src/psphotRoughClass.c
- Timestamp:
- Oct 2, 2009, 3:12:47 PM (17 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphotRoughClass.c (modified) (3 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/psphotRoughClass.c
r23989 r25755 26 26 for (int iy = 0; iy < NY; iy ++) { 27 27 28 psRegion region = psRegionSet(ix*dX, (ix + 1)*dX, iy*dY, (iy + 1)*dY);29 if (!psphotRoughClassRegion (nRegion, ®ion, sources, recipe, havePSF)) {28 psRegion *region = psRegionAlloc (ix*dX, (ix + 1)*dX, iy*dY, (iy + 1)*dY); 29 if (!psphotRoughClassRegion (nRegion, region, sources, recipe, havePSF)) { 30 30 psLogMsg ("psphot", 4, "Failed to determine rough classification for region %f,%f - %f,%f\n", 31 region.x0, region.y0, region.x1, region.y1); 31 region->x0, region->y0, region->x1, region->y1); 32 psFree (region); 32 33 continue; 33 34 } 34 35 psFree (region); 35 36 nRegion ++; 36 37 } … … 45 46 psphotVisualPlotMoments (recipe, sources); 46 47 psphotVisualShowRoughClass (sources); 47 psphotVisualShowFlags (sources);48 // XXX better visualization: psphotVisualShowFlags (sources); 48 49 49 50 return true; … … 63 64 psMetadata *regionMD = psMetadataLookupPtr (&status, recipe, regionName); 64 65 if (!regionMD) { 66 // allocate the region metadata folder and add this region to it. 65 67 regionMD = psMetadataAlloc(); 66 68 psMetadataAddMetadata (recipe, PS_LIST_TAIL, regionName, PS_META_REPLACE, "psf clump region", regionMD); 67 69 psFree (regionMD); 68 70 } 71 psMetadataAddPtr (regionMD, PS_LIST_TAIL, "REGION", PS_DATA_REGION | PS_META_REPLACE, "psf clump region", region); 69 72 70 73 if (!havePSF) { 71 74 // determine the PSF parameters from the source moment values 75 // XXX why not save the psfClump as a PTR? 72 76 psfClump = pmSourcePSFClump (region, sources, recipe); 73 77 psMetadataAddF32 (regionMD, PS_LIST_TAIL, "PSF.CLUMP.X", PS_META_REPLACE, "psf clump center", psfClump.X);
Note:
See TracChangeset
for help on using the changeset viewer.
