Changeset 2670
- Timestamp:
- 10/18/12 14:08:21 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MathUtils.cpp
r2619 r2670 197 197 // add data value 198 198 out[i] = ms.add(in[i+hwidth], flag[i+hwidth]); 199 outflag[i] = (ms.nval() == 0);199 outflag[i] = (ms.nval() > 0 ); 200 200 } 201 201 // replicate edge values from first value with full width of values -
trunk/src/STMath.cpp
r2658 r2670 2455 2455 if (kernel == "hanning") { 2456 2456 mathutil::hanning(specout, maskout, spec, !mask); 2457 convertArray(flag, !maskout);2458 2457 } else if (kernel == "rmedian") { 2459 2458 mathutil::runningMedian(specout, maskout, spec , mask, width); 2460 convertArray(flag, maskout);2461 2459 } else if (kernel == "poly") { 2462 2460 mathutil::polyfit(specout, maskout, spec, !mask, width, order); 2463 convertArray(flag, !maskout);2464 2461 } 2465 2462
Note:
See TracChangeset
for help on using the changeset viewer.