Changeset 24091 for trunk/psLib/src/imageops/psImageMapFit.c
- Timestamp:
- May 6, 2009, 2:22:14 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageMapFit.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageMapFit.c
r23989 r24091 308 308 # endif 309 309 310 if (!psMatrixGJSolveF32(A, B)) { 311 psAbort ("failed on linear equations"); 310 if (!psMatrixGJSolve(A, B)) { 312 311 psError(PS_ERR_UNKNOWN, false, "Could not solve linear equations. Returning NULL.\n"); 313 312 psFree (A); … … 577 576 } 578 577 579 if (!psMatrixGJSolveF32(A, B)) { 580 psAbort ("failed on linear equations"); 581 psError(PS_ERR_UNKNOWN, false, "Could not solve linear equations. Returning NULL.\n"); 578 if (!psMatrixGJSolve(A, B)) { 579 psError(PS_ERR_UNKNOWN, false, "Could not solve linear equations.\n"); 582 580 psFree (A); 583 581 psFree (B); 582 psFree (Empty); 584 583 return false; 585 584 } … … 725 724 } 726 725 727 if (!psMatrixGJSolveF32(A, B)) { 728 psAbort ("failed on linear equations"); 729 psError(PS_ERR_UNKNOWN, false, "Could not solve linear equations. Returning NULL.\n"); 726 if (!psMatrixGJSolve(A, B)) { 727 psError(PS_ERR_UNKNOWN, false, "Could not solve linear equations..\n"); 730 728 psFree (A); 731 729 psFree (B); 730 psFree (Empty); 732 731 return false; 733 732 } … … 742 741 743 742 for (int m = 0; m < Nx; m++) { 744 int I = m; // XXX I'm not entirely sure about this; it wasn't set for this scope --- PAP. 745 map->map->data.F32[0][m] = B->data.F32[I]; 746 map->error->data.F32[0][m] = sqrt(A->data.F32[I][I]); 743 map->map->data.F32[0][m] = B->data.F32[m]; 744 map->error->data.F32[0][m] = sqrt(A->data.F32[m][m]); 747 745 } 748 746
Note:
See TracChangeset
for help on using the changeset viewer.
