[scikit-image] Using EllipseModel

Juan Nunez-Iglesias jni.soma at gmail.com
Tue May 2 08:48:54 EDT 2017


I’ve raised the issue:
https://github.com/scikit-image/scikit-image/issues/2646

On 29 Apr 2017, 5:40 AM +1000, Stefan van der Walt <stefanv at berkeley.edu>, wrote:
> It may well be that those two functions use opposite directions for theta.  Do you mind filing an issue?
>
> Thanks
> Stéfan
>
> On Fri, Apr 28, 2017, at 11:02, Surya Kasturi wrote:
> > Hi,
> >
> > I’m trying to use skimage.measure.EllipseModel to estimate an ellipse around a contour. The results seems to be not so satisfying. I am wondering if I am using “orientation” parameter correctly.
> >
> > Could anyone please let me know whether “theta” is in radians or degrees? / I am doing anything wrong?
> >
> > from skimage.measure import EllipseModel
> >
> > # create ellipse model
> > ellipse = EllipseModel()
> > ellipse.estimate(cnt)
> >
> > xc, yc, a, b, theta = np.array(ellipse.params, dtype=int)
> >
> > # find perimeter
> > rr, cc = draw.ellipse_perimeter(xc, yc, a, b, orientation=theta)
> >
> > # plot
> > ax.scatter(cc, rr, s=5, label="EllipseModel”)
> >
> >
> >
> >
> >
> > Thank you,
> > Surya
> >
> > _______________________________________________
> > scikit-image mailing list
> > scikit-image at python.org
> > https://mail.python.org/mailman/listinfo/scikit-image
> _______________________________________________
> scikit-image mailing list
> scikit-image at python.org
> https://mail.python.org/mailman/listinfo/scikit-image
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20170502/03f8609c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plt.png
Type: image/png
Size: 56396 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20170502/03f8609c/attachment-0001.png>


More information about the scikit-image mailing list