Fix bug in ellipse model estimation due to changed predict_xy output

This commit is contained in:
Johannes Schönberger
2013-05-01 11:26:03 +02:00
parent c1bb30f625
commit 44ff37c8ee
+3 -3
View File
@@ -346,9 +346,9 @@ class EllipseModel(BaseModel):
diag_idxs = np.diag_indices(N)
def fun(params):
xt, yt = self.predict_xy(params[5:], params[:5])
fx = x - xt
fy = y - yt
xyt = self.predict_xy(params[5:], params[:5])
fx = x - xyt[:, 0]
fy = y - xyt[:, 1]
return np.append(fx, fy)
def Dfun(params):