Changeset 32130
- Timestamp:
- Aug 18, 2011, 6:39:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppsub_test/psModules/src/imcombine/pmSubtractionMatch.c
r31671 r32130 810 810 } 811 811 } 812 812 813 //MEH probably should comment out but should be ok? 813 814 // step 0 : calculate the normalizations, pass along to the next steps via stamps->normValue 814 815 psTrace("psModules.imcombine", 3, "Calculating normalization...\n"); … … 825 826 for (int order = 0; order <= N_TEST_ORDER; order++) { 826 827 for (int j = 0; j < N_TEST_MODES; j++) { 827 if (!pmSubtractionMatchAttempt(&bestMatch, kernels, stamps, TestModes[j], order, false)) { 828 //MEH: thinking pmSubtractionCalculateNormalization needs to be called here for conv source 829 // per mode 830 psTrace("psModules.imcombine", 3, "Calculating normalization...order: %d mode: %d\n",order,j); 831 if (!pmSubtractionCalculateNormalization(stamps, TestModes[j])) { 832 psError(psErrorCodeLast(), false, "Unable to calculate least-squares equation."); 828 833 goto MATCH_ERROR; 829 } 834 } 835 // 836 if (!pmSubtractionMatchAttempt(&bestMatch, kernels, stamps, TestModes[j], order, false)) { 837 goto MATCH_ERROR; 838 } 830 839 } 831 840 } … … 843 852 // apply the best fit so we are ready to roll 844 853 psLogMsg("psModules.imcombine", PS_LOG_INFO, "applying order: %d, mode: %d\n", bestMatch->spatialOrder, bestMatch->mode); 854 //MEH need to call normalization one more time for final/best run - 855 // but what if dual - already checked for in pmSubtractionCalculateNormalization 856 if (!pmSubtractionCalculateNormalization(stamps, bestMatch->mode)) { 857 psError(psErrorCodeLast(), false, "Unable to calculate least-squares equation."); 858 goto MATCH_ERROR; 859 } 860 // 845 861 if (!pmSubtractionMatchAttempt(NULL, kernels, stamps, bestMatch->mode, bestMatch->spatialOrder, true)) { 846 862 goto MATCH_ERROR;
Note:
See TracChangeset
for help on using the changeset viewer.
