Changeset 26982 for trunk/ppSub/src/ppSubThreshold.c
- Timestamp:
- Feb 17, 2010, 5:36:13 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubThreshold.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubThreshold.c
r26899 r26982 45 45 psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS); // Random number generator 46 46 if (!psImageBackground(stats, NULL, subImage, subMask, maskIgnore, rng)) { 47 psError(P S_ERR_UNKNOWN, false, "Unable to determine threshold.");47 psError(PPSUB_ERR_DATA, false, "Unable to determine threshold."); 48 48 psFree(rng); 49 49 psFree(stats); … … 97 97 pmReadout *in = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); // Input image 98 98 if (!in) { 99 psError(P S_ERR_UNEXPECTED_NULL, false, "Unable to find readout.");99 psError(PPSUB_ERR_UNKNOWN, false, "Unable to find readout."); 100 100 return false; 101 101 } … … 103 103 pmReadout *ref = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); // Reference image 104 104 if (!ref) { 105 psError(P S_ERR_UNEXPECTED_NULL, false, "Unable to find readout.");105 psError(PPSUB_ERR_UNKNOWN, false, "Unable to find readout."); 106 106 return false; 107 107 } … … 114 114 psRegion *region = regItem->data.V; // Region of interest 115 115 if (!lowThreshold(in, thresh, maskVal, maskThresh, region, "input convolved image")) { 116 psError( PS_ERR_UNKNOWN, false, "Unable to threshold input image.");116 psError(psErrorCodeLast(), false, "Unable to threshold input image."); 117 117 return false; 118 118 } 119 119 if (!lowThreshold(ref, thresh, maskVal, maskThresh, region, "reference convolved image")) { 120 psError( PS_ERR_UNKNOWN, false, "Unable to threshold input image.");120 psError(psErrorCodeLast(), false, "Unable to threshold input image."); 121 121 return false; 122 122 }
Note:
See TracChangeset
for help on using the changeset viewer.
