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
7f3076b9
Commit
7f3076b9
authored
Jul 17, 2020
by
Jean-Yves TINEVEZ
Browse files
Also export the curvatures to the table.
parent
130a4d7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/@deproj/to_table.m
View file @
7f3076b9
...
...
@@ -13,7 +13,7 @@ function T = to_table( obj )
area
=
vertcat
(
epicells
.
area
);
perim
=
vertcat
(
epicells
.
perimeter
);
perim
eter
=
vertcat
(
epicells
.
perimeter
);
euler_angle
=
vertcat
(
epicells
.
euler_angles
);
euler_alpha
=
euler_angle
(
:
,
1
);
...
...
@@ -32,6 +32,12 @@ function T = to_table( obj )
proj_direction
=
vertcat
(
epicells
.
proj_direction
);
curvatures
=
vertcat
(
epicells
.
curvatures
);
curvature_mean
=
curvatures
(
:
,
1
);
curvature_gauss
=
curvatures
(
:
,
2
);
curvature_k1
=
curvatures
(
:
,
3
);
curvature_k2
=
curvatures
(
:
,
4
);
uncorrected_area
=
vertcat
(
epicells
.
uncorrected_area
);
uncorrected_perimeter
=
vertcat
(
epicells
.
uncorrected_perimeter
);
...
...
@@ -42,7 +48,7 @@ function T = to_table( obj )
yc
,
...
zc
,
...
area
,
...
perim
,
...
perim
eter
,
...
euler_alpha
,
...
euler_beta
,
...
euler_gamma
,
...
...
...
@@ -54,8 +60,12 @@ function T = to_table( obj )
ellipse_sigma
,
...
eccentricity
,
...
proj_direction
,
...
curvature_mean
,
...
curvature_gauss
,
...
curvature_k1
,
...
curvature_k2
,
...
uncorrected_area
,
...
uncorrected_perimeter
);
uncorrected_perimeter
);
T
.
Properties
.
VariableDescriptions
=
{
'Unique identifier'
...
...
@@ -75,6 +85,10 @@ function T = to_table( obj )
'Ellipse fit angle with X
''
(see Euler angles) axis'
'Eccentricity from ellipse fit'
'Cell main direction projected on the XY plane'
'Local mean curvature'
'Local Gaussian curvature'
'First principal curvature'
'Second principal curvature'
'Cell area projected on the XY plane'
'Cell perimeter projected on the XY plane'
};
...
...
@@ -97,11 +111,15 @@ function T = to_table( obj )
'radians'
''
'radians'
sprintf
(
'1/%s'
,
obj
.
units
)
sprintf
(
'1/%s^2'
,
obj
.
units
)
sprintf
(
'1/%s'
,
obj
.
units
)
sprintf
(
'1/%s'
,
obj
.
units
)
sprintf
(
'%s^2'
,
obj
.
units
)
obj
.
units
};
T
.
Properties
.
Description
=
sprintf
(
'Data generated from De
p
roj software, exported on %s.'
,
...
T
.
Properties
.
Description
=
sprintf
(
'Data generated from De
P
roj software, exported on %s.'
,
...
datestr
(
now
)
);
end
...
...
Write
Preview
Markdown
is supported
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