Changeset 26594
- Timestamp:
- Jan 14, 2010, 10:19:12 AM (16 years ago)
- Location:
- branches/eam_branches/20091201/psModules/src
- Files:
-
- 6 edited
-
imcombine/pmPSFEnvelope.c (modified) (2 diffs)
-
imcombine/pmPSFEnvelope.h (modified) (1 diff)
-
objects/pmPeaks.c (modified) (4 diffs)
-
objects/pmSource.c (modified) (1 diff)
-
objects/pmSource.h (modified) (1 diff)
-
objects/pmSourceMoments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/psModules/src/imcombine/pmPSFEnvelope.c
r25754 r26594 65 65 int radius, // Radius of each PSF 66 66 const char *modelName,// Name of PSF model to use 67 int xOrder, int yOrder // Order for PSF variation fit 67 int xOrder, int yOrder, // Order for PSF variation fit 68 psImageMaskType maskVal 68 69 ) 69 70 { … … 360 361 361 362 // measure the source moments: tophat windowing, no pixel S/N cutoff 362 if (!pmSourceMoments(source, maxRadius, 0.0, 1.0)) { 363 // XXX probably should be passing the maskVal to this function so we can pass it along here... 364 if (!pmSourceMoments(source, maxRadius, 0.0, 1.0, maskVal)) { 363 365 // Can't do anything about it; limp along as best we can 364 366 psErrorClear(); -
branches/eam_branches/20091201/psModules/src/imcombine/pmPSFEnvelope.h
r15837 r26594 17 17 int radius, // Radius of each PSF 18 18 const char *modelName, // Name of PSF model to use 19 int xOrder, int yOrder // Order for PSF variation 19 int xOrder, int yOrder, // Order for PSF variation 20 psImageMaskType maskVal 20 21 ); 21 22 -
branches/eam_branches/20091201/psModules/src/objects/pmPeaks.c
r25754 r26594 375 375 psU32 col = 0; 376 376 psU32 row = 0; 377 psArray *list = NULL;377 psArray *list = psArrayAllocEmpty(100); 378 378 379 379 // Find peaks in row 0 only. … … 416 416 417 417 } else { 418 ps Error(PS_ERR_UNKNOWN, true, "peak specifiedvalid column range.");418 psLogMsg ("psModules.objects", 5, "peak specified outside valid column range."); 419 419 } 420 420 } … … 501 501 } 502 502 } else { 503 psError(PS_ERR_UNKNOWN, true, "peak specified outside valid column range.");503 psLogMsg ("psModules.objects", 5, "peak specified outside valid column range."); 504 504 } 505 505 … … 545 545 } 546 546 } else { 547 ps Error(PS_ERR_UNKNOWN, true, "peak specified outside valid column range.");547 psLogMsg ("psModules.objects", 5, "peak specified outside valid column range."); 548 548 } 549 549 } -
branches/eam_branches/20091201/psModules/src/objects/pmSource.c
r26523 r26594 409 409 410 410 // if we failed to find a valid peak, return the empty clump (failure signal) 411 if (peaks == NULL) 411 if (peaks == NULL) { 412 psError(PS_ERR_UNKNOWN, false, "failure in peak analysis for PSF clump.\n"); 413 return emptyClump; 414 } 415 416 if (peaks->n == 0) 412 417 { 413 418 psLogMsg ("psphot", 3, "failed to find a peak in the PSF clump image\n"); -
branches/eam_branches/20091201/psModules/src/objects/pmSource.h
r25754 r26594 220 220 float radius, ///< Use a circle of pixels around the peak 221 221 float sigma, ///< size of Gaussian window function (<= 0.0 -> skip window) 222 float minSN ///< minimum pixel significance 222 float minSN, ///< minimum pixel significance 223 psImageMaskType maskVal 223 224 ); 224 225 -
branches/eam_branches/20091201/psModules/src/objects/pmSourceMoments.c
r26426 r26594 54 54 # define VALID_RADIUS(X,Y,RAD2) (((RAD2) >= (PS_SQR(X) + PS_SQR(Y))) ? 1 : 0) 55 55 56 bool pmSourceMoments(pmSource *source, psF32 radius, psF32 sigma, psF32 minSN )56 bool pmSourceMoments(pmSource *source, psF32 radius, psF32 sigma, psF32 minSN, psImageMaskType maskVal) 57 57 { 58 58 PS_ASSERT_PTR_NON_NULL(source, false); … … 114 114 for (psS32 col = 0; col < source->pixels->numCols ; col++, vPix++, vWgt++) { 115 115 if (vMsk) { 116 if (*vMsk ) {116 if (*vMsk & maskVal) { 117 117 vMsk++; 118 118 continue; … … 226 226 for (psS32 col = 0; col < source->pixels->numCols ; col++, vPix++, vWgt++) { 227 227 if (vMsk) { 228 if (*vMsk ) {228 if (*vMsk & maskVal) { 229 229 vMsk++; 230 230 continue;
Note:
See TracChangeset
for help on using the changeset viewer.
