- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStack/src/ppStackSources.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ppStack/src/ppStackSources.c
r33427 r34041 9 9 //#define FAKE_COLS 4861 10 10 //#define FAKE_ROWS 4913 11 // MEH - new warp sizes and simtests used -- will just make smaller output sample images and needs to be 1k for simstest 12 //#define FAKE_COLS 6400 13 //#define FAKE_ROWS 6400 11 14 #define FAKE_COLS 1000 12 15 #define FAKE_ROWS 1000 … … 170 173 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT", i); // File of interest 171 174 172 //MEH 0->1 173 #if defined(TESTING) && 1 175 //MEH 0->1 -- remember this is manually set to size FAKE_COLS/ROWS and may not overlap on edges 176 //MEH - breaks if move SourcesTrans before target psf section in ppStackPrepare.. move to ppStackMatch 177 // since silly if not conv? 178 #if defined(TESTING) && 0 174 179 pmReadout *fake = pmReadoutAlloc(NULL); // Fake readout 175 180 pmPSF *psf = psMetadataLookupPtr(NULL, config->arguments, "PSF.TARGET"); // PSF for fake image … … 184 189 psFitsClose(fits); 185 190 psFree(fake); 191 //MEH - should also free psf.. 192 psFree(psf); 186 193 #endif 187 194 … … 477 484 478 485 // XXX something of a hack: require at least 2 detections or the nominated fraction of the max possible 479 int minMatches = PS_MAX(2, fracMatch * num);// Minimum number of matches required 486 //int minMatches = PS_MAX(2, fracMatch * num);// Minimum number of matches required 487 //MEH - if many poor images will hit oddity with num fraction, use numGoodImages? does it change another threshold? 488 int minMatches = PS_MAX(2, fracMatch * numGoodImages);// Minimum number of matches required 480 489 for (int i = 0; i < matches->n; i++) { 481 490 pmSourceMatch *match = matches->data[i]; // Match of interest 491 //MEH 492 psLogMsg("ppStack", PS_LOG_INFO, "TESTING:sources: i:%d %ld %d %f %d", i,matches->n,num,fracMatch,match->num); 482 493 if (match->num < minMatches) { 483 494 continue;
Note:
See TracChangeset
for help on using the changeset viewer.
