Nice code, very helpful, thanks for making it public!
I was a little confused by one point in the code, but so far as I could spot, it's only a docstring (minor) issue:
In ref () (paper) the ellipse is defined as a x^2 + b x y + ...*, which are the coefficients returned in the corresponding attribute ellipse.LsqEllipse.coefficients.
However, the docstring in that attribute ellipse.LsqEllipse.coefficients points to ref (*) (MathWorld), which defines the ellipse with additional factors: a x^2 + 2 b x y + ...*, and is the source of my confusion.
In the method as_parameters, those factors are implemented where needed, but wouldn't it be clearer to:
either modify the docstring where it needs to be modified,
or incorporate the incriminated factors directly in the fitting routine (and harmonize the notation throughout the code)?
Hi,
Nice code, very helpful, thanks for making it public!
I was a little confused by one point in the code, but so far as I could spot, it's only a docstring (minor) issue:
ellipse.LsqEllipse.coefficients
.ellipse.LsqEllipse.coefficients
points to ref (*) (MathWorld), which defines the ellipse with additional factors: a x^2 + 2 b x y + ...*, and is the source of my confusion.In the method
as_parameters
, those factors are implemented where needed, but wouldn't it be clearer to:Happy holidays!