Re: [scikit-image] Fitting Ellipse Model

2017-06-12 Thread Stefan van der Walt
Hi Surya On Mon, Jun 12, 2017, at 16:54, Surya Kasturi wrote: > I’ve commented this snippet on Github. Anyway, is there any > functionality similar to matchShapes[1] provided in OpenCV? We have Hu moments implemented, so you can plug those directly into the formulas shown at the link you gave. Bes

Re: [scikit-image] Fitting Ellipse Model

2017-06-12 Thread Surya Kasturi
Hi Stefan, I’ve commented this snippet on Github. Anyway, is there any functionality similar to matchShapes provided in OpenCV? Thanks Surya > On Jun 12, 2017, at

Re: [scikit-image] Fitting Ellipse Model

2017-06-12 Thread Stefan van der Walt
Hi Surya On Sun, Jun 11, 2017, at 20:59, Surya Kasturi wrote: > The below is output. Shouldn’t both ellipses in the image overlap > since I’m using data points of a perfect ellipse to estimate a new > ellipse? I believe you've uncovered a bug. Ellipse fitting and ellipse drawing seem to use diffe

[scikit-image] Fitting Ellipse Model

2017-06-11 Thread Surya Kasturi
Hi, I am trying to understand how measure.EllipseModel is working. Following is the snippet. x1, y1, a1, b1 = 3, 3, 20, 40 rr1, cc1 = draw.ellipse_perimeter(x1, y1, a1, b1) # some ellipse # Estimate ellipse model with the above points model = EllipseModel() model.estimate(np.array([rr1,cc1]).T)