Changeset 31204
- Timestamp:
- Apr 6, 2011, 1:23:38 PM (15 years ago)
- Location:
- tags/ipp-20110406
- Files:
-
- 5 edited
-
ppStack/src/ppStackCombineInitial.c (modified) (1 diff)
-
ppStack/src/ppStackLoop.c (modified) (1 diff)
-
ppStack/src/ppStackReject.c (modified) (1 diff)
-
psModules/src/imcombine/pmStack.c (modified) (1 diff)
-
psModules/src/imcombine/pmStackReject.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20110406/ppStack/src/ppStackCombineInitial.c
r31054 r31204 9 9 psAssert(config, "Require configuration"); 10 10 11 if (!options->convolve) { 12 // No need to do initial combination when we haven't convolved 13 // XXX either allocate inspect and rejected here, or do not require them downstream 14 return true; 15 } 11 /* if (!options->convolve) { */ 12 /* // No need to do initial combination when we haven't convolved */ 13 /* // XXX either allocate inspect and rejected here, or do not require them downstream */ 14 /* return true; */ 15 /* } */ 16 16 17 17 psTimerStart("PPSTACK_INITIAL"); -
tags/ipp-20110406/ppStack/src/ppStackLoop.c
r31158 r31204 115 115 // Final combination. This one does NOT need to be normalized since the convolution takes care of that 116 116 psTrace("ppStack", 2, "Final stack of convolved images....\n"); 117 if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, false, true)) { 117 if (options->convolve) { 118 if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, false, true)) { 118 119 psError(psErrorCodeLast(), false, "Unable to perform final combination."); 119 120 psFree(stack); 120 121 return false; 121 } 122 } 123 } 124 else { 125 // Since we haven't convolved, I believe we do need to normalize here. We also cannot grow. 126 if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, true, false)) { 127 psError(psErrorCodeLast(), false, "Unable to perform final combination."); 128 psFree(stack); 129 return false; 130 } 131 } 132 122 133 psLogMsg("ppStack", PS_LOG_INFO, "Stage 5: Final Stack: %f sec", psTimerClear("PPSTACK_STEPS")); 123 134 ppStackMemDump("final"); -
tags/ipp-20110406/ppStack/src/ppStackReject.c
r31158 r31204 8 8 psAssert(config, "Require configuration"); 9 9 10 if (!options->convolve) { 11 // No need to do complicated rejection when we haven't convolved 12 return true; 13 } 10 /* if (!options->convolve) { */ 11 /* // No need to do complicated rejection when we haven't convolved */ 12 /* return true; */ 13 /* } */ 14 14 15 15 int num = options->num; // Number of inputs -
tags/ipp-20110406/psModules/src/imcombine/pmStack.c
r31153 r31204 37 37 # if (0) 38 38 #define TESTING // Enable test output 39 #define TEST_X 3 40// x coordinate to examine40 #define TEST_Y 938// y coordinate to examine39 #define TEST_X 3145 // x coordinate to examine 40 #define TEST_Y 2334 // y coordinate to examine 41 41 #define TEST_RADIUS 0.5 // Radius to examine 42 42 # endif -
tags/ipp-20110406/psModules/src/imcombine/pmStackReject.c
r30622 r31204 125 125 PS_ASSERT_FLOAT_LARGER_THAN_OR_EQUAL(threshold, 0.0, NULL); 126 126 PS_ASSERT_FLOAT_LESS_THAN_OR_EQUAL(threshold, 1.0, NULL); 127 128 if (!subRegions || !subKernels) { 129 psPixels *out = psPixelsCopy(NULL,in); 130 return out; 131 } 132 127 133 PS_ASSERT_ARRAY_NON_NULL(subRegions, NULL); 128 134 PS_ASSERT_ARRAY_NON_NULL(subKernels, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
