Changeset 29490
- Timestamp:
- Oct 20, 2010, 8:54:42 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100823/psModules/src/imcombine
- Files:
-
- 2 edited
-
pmSubtractionEquation.c (modified) (2 diffs)
-
pmSubtractionKernels.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/psModules/src/imcombine/pmSubtractionEquation.c
r29449 r29490 1104 1104 // XXX TEST: try some constraint on the svd solution 1105 1105 // solution = psMatrixSolveSVD(solution, sumMatrix, sumVector, NAN); 1106 solution = psMatrixSolveSVD(solution, sumMatrix, sumVector, NAN); 1106 // SINGLE solution 1107 if (1) { 1108 solution = psMatrixSolveSVD(solution, sumMatrix, sumVector, NAN); 1109 } else { 1110 psVector *PERM = NULL; 1111 psImage *LU = psMatrixLUDecomposition(NULL, &PERM, sumMatrix); 1112 solution = psMatrixLUSolution(solution, LU, sumVector, PERM); 1113 psFree (LU); 1114 psFree (PERM); 1115 } 1107 1116 1108 1117 for (int i = 0; i < solution->n; i++) { … … 1175 1184 psVectorInit(solution, 0); 1176 1185 1186 // DUAL solution 1177 1187 solution = psMatrixSolveSVD(solution, sumMatrix, sumVector, NAN); 1178 1188 -
branches/eam_branches/ipp-20100823/psModules/src/imcombine/pmSubtractionKernels.c
r29449 r29490 182 182 return true; 183 183 } 184 185 // XXX *** this code used the central pixel to force zero net flux, 186 // Alard actually uses kernel(0) for this purpose (for even order, kernel[i] = kernel'[i] - kernel[0]) 184 187 185 188 static bool pmSubtractionKernelPreCalcNormalize(pmSubtractionKernels *kernels, pmSubtractionKernelPreCalc *preCalc,
Note:
See TracChangeset
for help on using the changeset viewer.
