mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-15 12:54:54 +08:00
Rename variables for better readability
This commit is contained in:
committed by
Johannes Schönberger
parent
47c3ebac1c
commit
a384ca2bef
@@ -373,10 +373,10 @@ class EllipseModel(BaseModel):
|
|||||||
|
|
||||||
def Dfun(t, xi, yi):
|
def Dfun(t, xi, yi):
|
||||||
xt, yt = self.predict_xy(t)
|
xt, yt = self.predict_xy(t)
|
||||||
dfx = - 2 * (xi - xt) * (- a * np.cos(theta) * np.sin(t)
|
dfx_t = - 2 * (xi - xt) * (- a * np.cos(theta) * np.sin(t)
|
||||||
- b * np.sin(theta) * np.cos(t))
|
- b * np.sin(theta) * np.cos(t))
|
||||||
dfy = - 2 * (yi - yt) * (- a * np.sin(theta) * np.sin(t)
|
dfy_t = - 2 * (yi - yt) * (- a * np.sin(theta) * np.sin(t)
|
||||||
+ b * np.cos(theta) * np.cos(t))
|
+ b * np.cos(theta) * np.cos(t))
|
||||||
return dfx + dfy
|
return dfx + dfy
|
||||||
|
|
||||||
residuals = np.empty((N, ), dtype=np.double)
|
residuals = np.empty((N, ), dtype=np.double)
|
||||||
|
|||||||
Reference in New Issue
Block a user