Form removal
Closed this issue · 1 comments
Form removal is the only major operation which appears to be missing from the library. Is it possible to add this feature?
Form removal is done in the simplest case by polynomial regression with degree 3. Adding this feature, with a choice of degree, would require a more flexible approach to the explicit linear model used for leveling in the current library. Sklearn has this capability with its PolynomialFeatures function and LinearRegression models. Just requires a bit of annoying matrix reshaping to return the predictions in the original shape.
I was also working on my own surface analysis library Rough and you can see my basic implementation of form removal.
Surfile also has a pure numpy implementation of form removal.
Hi, I have added an implementation of polynomial removal to the develop branch.