Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aa52766

Browse files
fit func update
1 parent 52070a1 commit aa52766

File tree

3 files changed

+15
-92
lines changed

3 files changed

+15
-92
lines changed

‎.ipynb_checkpoints/FitFunction-checkpoint.ipynb

Lines changed: 5 additions & 41 deletions
Large diffs are not rendered by default.

‎FitFunction.ipynb

Lines changed: 5 additions & 41 deletions
Large diffs are not rendered by default.

‎FitFunction.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# coding: utf-8
33

4-
# In[2]:
4+
# In[]:
55

66

77
import Image_preperation as prep
@@ -80,13 +80,8 @@ def get_normal_angle(a,b,c):
8080
#is linear
8181
if(is_equal(b_proj , b)):
8282

83-
c_norm = np.add(c,[2,0])
84-
if(is_equal(a,b)):
85-
a_corr = np.add(a,[-5,0])
86-
a_proj = project_on(a_corr, b ,c)
87-
rad = calc_angle(a_proj,b,c_norm)
88-
else:
89-
rad = calc_angle(a,b,c_norm)
83+
b_norm = np.add(b,[2,0])
84+
rad = calc_angle(a,b,b_norm)
9085

9186
#not linear
9287
else:
@@ -251,7 +246,7 @@ def test_normal_on_edge():
251246

252247

253248

254-
# In[3]:
249+
# In[]:
255250

256251

257252
if __name__ == "__main__":
@@ -313,7 +308,7 @@ def test_normal_on_edge():
313308
# fm.show_with_points(piece, new_points)
314309

315310

316-
# In[11]:
311+
# In[11]:
317312

318313

319314
math.degrees(rad)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /