Skip to content
GitLab
Menu
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
97b42aa9
Commit
97b42aa9
authored
Jul 06, 2020
by
Jean-Yves TINEVEZ
Browse files
Add eccentricity descriptor.
parent
18734fcf
Changes
1
Show whitespace changes
Inline
Side-by-side
src/@epicell/epicell.m
View file @
97b42aa9
...
@@ -10,6 +10,7 @@ classdef epicell
...
@@ -10,6 +10,7 @@ classdef epicell
perimeter
perimeter
euler_angles
euler_angles
ellipse_fit
ellipse_fit
eccentricity
uncorrected_area
uncorrected_area
uncorrected_perimeter
uncorrected_perimeter
id
id
...
@@ -44,6 +45,12 @@ classdef epicell
...
@@ -44,6 +45,12 @@ classdef epicell
p
=
epicell
.
centered_points
(
boundary
);
p
=
epicell
.
centered_points
(
boundary
);
obj
.
euler_angles
=
epicell
.
fit_plane
(
p
);
obj
.
euler_angles
=
epicell
.
fit_plane
(
p
);
obj
.
ellipse_fit
=
epicell
.
fit_ellipse_3d
(
boundary
,
obj
.
euler_angles
);
obj
.
ellipse_fit
=
epicell
.
fit_ellipse_3d
(
boundary
,
obj
.
euler_angles
);
% Derived morphological descriptors.
a
=
obj
.
ellipse_fit
(
4
);
b
=
obj
.
ellipse_fit
(
5
);
obj
.
eccentricity
=
sqrt
(
1
-
(
b
/
a
)
*
(
b
/
a
)
);
end
end
function
h
=
plot_patch_2d
(
obj
,
val
)
function
h
=
plot_patch_2d
(
obj
,
val
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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