Home > Net >  About the curve smoothing algorithm
About the curve smoothing algorithm

Time:09-25

Ladies and gentlemen, now I have a pair of 3 d image (x, y, z), steps now to realize the function is to take a line in the image, get the line fitting curve of x z, using the least squares fitting a curve, fitting a curve is as follows:

Curve and the X axis is tilted, now I hope to be able to make the whole curve flattening, the curve is roughly parallel to the X axis, want to accomplish probably effect is as follows:

What algorithm can achieve this effect? Thank you very much!

CodePudding user response:

Well, can make your own least squares fitting, then make a filter should not be any problem in the

Code does not give, can do the least squares fitting enough basis, write their own filter is not difficult, just need to choose the filter type

"Baidu" filter algorithm - filter are much more, of course, you have chosen,

CodePudding user response:

Do you want high pass? Or is a coordinate rotation? All very simple ah, oneself write a not with respect to ok
  •  Tags:  
  • C#
  • Related