Changeset 25022 for branches/eam_branches/20090715/psModules/src/objects
- Timestamp:
- Aug 7, 2009, 12:45:24 PM (17 years ago)
- Location:
- branches/eam_branches/20090715
- Files:
-
- 6 edited
- 1 copied
-
. (modified) (1 prop)
-
psModules/src/objects/Makefile.am (modified) (1 diff)
-
psModules/src/objects/pmFootprint.h (modified) (1 diff)
-
psModules/src/objects/pmFootprintCullPeaks.c (copied) (copied from trunk/psModules/src/objects/pmFootprintCullPeaks.c )
-
psModules/src/objects/pmSource.c (modified) (2 diffs)
-
psModules/src/objects/pmSourceContour.c (modified) (6 diffs)
-
psModules/src/objects/pmSourceIO_MatchedRefs.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715
- Property svn:mergeinfo changed
/trunk (added) merged: 24801-24824,24827-24834,24836-24859,24861-24901,24903-24912,24914-24950,24953-24971,24973-24977,24986-24989,24993-25017
- Property svn:mergeinfo changed
-
branches/eam_branches/20090715/psModules/src/objects/Makefile.am
r24401 r25022 10 10 pmFootprintArraysMerge.c \ 11 11 pmFootprintAssignPeaks.c \ 12 pmFootprintCullPeaks.c \ 12 13 pmFootprintFind.c \ 13 14 pmFootprintFindAtPoint.c \ -
branches/eam_branches/20090715/psModules/src/objects/pmFootprint.h
r20945 r25022 51 51 void pmSetFootprintArrayIDsForImage(psImage *idImage, 52 52 const psArray *footprints, // the footprints to insert 53 const bool relativeIDs); // show IDs starting at 0, not pmFootprint->id 53 const bool relativeIDs // show IDs starting at 0, not pmFootprint->id 54 ); 54 55 55 56 psErrorCode pmFootprintsAssignPeaks(psArray *footprints, const psArray *peaks); 56 57 57 psErrorCode pmFootprintArrayCullPeaks(const psImage *img, const psImage *weight, psArray *footprints, 58 const float nsigma, const float threshold_min); 59 psErrorCode pmFootprintCullPeaks(const psImage *img, const psImage *weight, pmFootprint *fp, 60 const float nsigma, const float threshold_min); 58 psErrorCode pmFootprintCullPeaks(const psImage *img, // the image wherein lives the footprint 59 const psImage *weight, // corresponding variance image 60 pmFootprint *fp, // Footprint containing mortal peaks 61 const float nsigma_delta, // how many sigma above local background a peak needs to be to survive 62 const float fPadding, // fractional padding added to stdev since bright peaks have unreasonably high significance 63 const float min_threshold // minimum permitted coll height 64 ); 61 65 62 66 psArray *pmFootprintArrayToPeaks(const psArray *footprints); -
branches/eam_branches/20090715/psModules/src/objects/pmSource.c
r24576 r25022 242 242 extend |= (mySource->maskView == NULL); 243 243 244 // extend = true;245 244 if (extend) { 246 245 // re-create the subimage … … 250 249 251 250 mySource->pixels = psImageSubset(readout->image, newRegion); 252 mySource->variance = psImageSubset(readout->variance, newRegion);251 mySource->variance = psImageSubset(readout->variance, newRegion); 253 252 mySource->maskView = psImageSubset(readout->mask, newRegion); 254 253 mySource->region = newRegion; -
branches/eam_branches/20090715/psModules/src/objects/pmSourceContour.c
r23187 r25022 273 273 x0 = findContourPos (image, threshold, xR, yR, RIGHT, x1); 274 274 if (x0 == x1) { 275 // fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1);275 // fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1); 276 276 goto pt1; 277 277 } … … 282 282 x1 = findContourNeg (image, threshold, xR, yR, RIGHT); 283 283 } 284 // fprintf (stderr, "pos: %d (%d - %d)\n", yR, x0, x1);284 // fprintf (stderr, "pos: %d (%d - %d)\n", yR, x0, x1); 285 285 286 286 xVec->data.F32[Npt + 0] = image->col0 + x0; … … 288 288 yVec->data.F32[Npt + 0] = image->row0 + yR; 289 289 yVec->data.F32[Npt + 1] = image->row0 + yR; 290 290 291 Npt += 2; 291 292 … … 307 308 x0 = findContourPos (image, threshold, xR, yR, RIGHT, x1); 308 309 if (x0 == x1) { 309 // fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1);310 // fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1); 310 311 goto pt2; 311 312 } … … 322 323 yVec->data.F32[Npt + 0] = image->row0 + yR; 323 324 yVec->data.F32[Npt + 1] = image->row0 + yR; 325 324 326 Npt += 2; 325 327 … … 334 336 yVec->n = Npt; 335 337 336 // fprintf (stderr, "done\n");337 338 psArray *tmpArray = psArrayAlloc(2); 338 339 -
branches/eam_branches/20090715/psModules/src/objects/pmSourceIO_MatchedRefs.c
r24694 r25022 95 95 psTrace ("psastro", 4, "Trying %ld refstars\n", refstars->n); 96 96 97 # if (0) 98 // XXX test 99 FILE *outfile = fopen ("refstars.dat", "w"); 100 assert (outfile); 101 for (int nn = 0; nn < refstars->n; nn++) { 102 pmAstromObj *ref = refstars->data[nn]; 103 fprintf (outfile, "%lf %lf\n", ref->sky->r*PS_DEG_RAD, ref->sky->d*PS_DEG_RAD); 104 } 105 fclose (outfile); 106 # endif 107 97 108 psArray *matches = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.MATCH"); 98 109 if (matches == NULL) continue;
Note:
See TracChangeset
for help on using the changeset viewer.
