0

I'm trying to use Ransac for model fitting according to this example : https://scikit-image.org/docs/dev/auto_examples/transform/plot_ransac.html#sphx-glr-auto-examples-transform-plot-ransac-py

Acording to https://scikit-image.org/docs/0.13.x/api/skimage.measure.html#skimage.measure.LineModelND ,if I choose model_class as LineModel it'll fit my data with the standard line model y = ax + b. Instead, I want to fit my data with a quadratic funcion y = ax^2 + b*x + c. Is there a way to do that with scikit-image or opencv libraries ?

  • 1
    https://charleshsliao.wordpress.com/2017/06/16/ransac-and-nonlinear-regression-in-python/ search keyword quadratic = PolynomialFeatures(degree=2) – Dr Yuan Shenghai Nov 24 '20 at 02:51
  • Thank you for your help ! I created a model with Pipeline command and I was able to perform RANSAC for the polynomial fit. It helped me a lot ! – Guilherme Augusto Nov 24 '20 at 23:03

0 Answers0