Changeset 37811 for trunk/psLib
- Timestamp:
- Jan 11, 2015, 2:57:41 PM (12 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
imageops/psImageMapFit.c (modified) (1 diff)
-
math/psMinimizePolyFit.c (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageMapFit.c
r37721 r37811 286 286 // fprintf (stderr, "Total: %f\n", Total); 287 287 288 double MaxPivot = 0.0; 289 for (int i = 0; i < Nx*Ny; i++) { 290 MaxPivot = PS_MAX(MaxPivot, fabs(A->data.F32[i][i])); 291 // fprintf (stderr, "piv, max: %f : %f\n", A->data.F32[i][i], MaxPivot); 292 } 293 288 294 // test for empty diagonal elements (unconstained cells), mark, and set pivots to 1.0 289 295 psVector *Empty = psVectorAlloc (Nx*Ny, PS_TYPE_S8); 290 296 psVectorInit (Empty, 0); 297 double MinPivot = 0.025*MaxPivot; 291 298 for (int i = 0; i < Nx*Ny; i++) { 292 if (A->data.F32[i][i] == 0.0) {299 if (fabs(A->data.F32[i][i]) < MinPivot) { 293 300 Empty->data.S8[i] = 1; 294 301 for (int j = 0; j < Nx*Ny; j++) { -
trunk/psLib/src/math/psMinimizePolyFit.c
- Property svn:mergeinfo changed
/tags/ipp-20141224/psLib/src/math/psMinimizePolyFit.c (added) merged: 37809-37810
- Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
