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 d2a6f05

Browse files
active shape added params
1 parent 443f524 commit d2a6f05

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

‎ActiveShapeModel.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def active_shape_scale(img, tooth_points, pca_tooth, length, scale):
4040

4141
def active_shape(edge_img, tooth_points, pca_tooth, length, alfa, activeFitON, MatchingON=True):
4242

43-
<<<<<<< HEAD
4443
if(activeFitON):
4544
new_points = af.active_contour(tooth_points, edge_img, length, alfa)
4645
else:
@@ -54,14 +53,7 @@ def active_shape(edge_img, tooth_points, pca_tooth, length, alfa, activeFitON, M
5453
y = new_points
5554

5655
return y
57-
=======
58-
new_points, error = fit.fit_measure(tooth_points, length, edge_img)
59-
# new_points = af.active_contour(tooth_points, edge_img, length, alfa)
60-
b, pose_param = match.match_model_points(new_points, pca_tooth)
61-
62-
x = match.generate_model_point(b, pca_tooth)
63-
return match.inv_transform(x.reshape(40,2),pose_param)
64-
>>>>>>> 9a9ab79babd5afacb4cce519e68d518d3fe242c9
56+
6557

6658
def active_shape_n_times(edge_img, tooth_points, pca_tooth, length,alfa, n_times):
6759

0 commit comments

Comments
(0)

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