Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IAH public
DeProj
Commits
de5fe857
Commit
de5fe857
authored
Jul 04, 2020
by
Jean-Yves TINEVEZ
Browse files
Don't forget to center points before fitting plane.
parent
9ba34e11
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/epicell.m
View file @
de5fe857
...
...
@@ -138,6 +138,8 @@ classdef epicell
end
function
E
=
fit_plane
(
p
)
c
=
mean
(
p
);
p
=
p
-
repmat
(
c
,
size
(
p
,
1
),
1
);
% Fit a plane to these points.
[
~
,
~
,
v
]
=
svd
(
p
);
E
=
rot2eulerZXZ
(
v
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment