Changeset 17075
- Timestamp:
- Mar 20, 2008, 2:37:35 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psPolynomialMD.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psPolynomialMD.c
r17071 r17075 3 3 #include <limits.h> 4 4 5 #include <psMemory.h> 6 #include <psVector.h> 7 #include <psImage.h> 8 #include <psPolynomial.h> 9 #include <psArray.h> 10 #include <psMatrix.h> 11 #include <psError.h> 12 #include <psAbort.h> 13 #include <psAssert.h> 5 #include "psMemory.h" 6 #include "psVector.h" 7 #include "psImage.h" 8 #include "psPolynomial.h" 9 #include "psArray.h" 10 #include "psMatrix.h" 11 #include "psError.h" 12 #include "psAbort.h" 13 #include "psAssert.h" 14 #include "psTrace.h" 14 15 15 16 #include "psPolynomialMD.h" … … 398 399 rms += PS_SQR(diff); 399 400 } 400 rms = sqrt(rms) / (double)numGood; 401 rms = sqrt(rms / (double)numGood); 402 psTrace("psLib.math", 7, "RMS from %d points is %lf\n", numGood, rms); 401 403 402 404 // Reject … … 407 409 } 408 410 if (fabs(deviations->data.F32[i]) > limit) { 411 psTrace("psLib.math", 9, "Rejected point %d (%f,%f: %f > %f)\n", 412 i, values->data.F32[i], psPolynomialMDEval(poly, coordsArray->data[i]), 413 deviations->data.F32[i], limit); 409 414 ownMask->data.U8[i] = 0xff; 410 415 numClipped++; … … 412 417 } 413 418 } 419 psTrace("psLib.math", 7, "Rejected %d points (%d remaining)\n", numClipped, numGood); 414 420 } 415 421
Note:
See TracChangeset
for help on using the changeset viewer.
