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
9042b518
Commit
9042b518
authored
Jul 26, 2020
by
Jean-Yves TINEVEZ
Browse files
Fix minor bug in compute_curvatures.
We need to check that an argument is not empty before checking whether it is nan.
parent
87573e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/@deproj/compute_curvatures.m
View file @
9042b518
...
...
@@ -13,7 +13,7 @@ function [ curvMean, curvGauss, curvK1, curvK2 ] = compute_curvatures( H, object
pixel_size
=
1
;
end
if
nargin
>=
2
&&
~
is
nan
(
object_scale
)
&&
~
is
empty
(
object_scale
)
if
nargin
>=
2
&&
~
is
empty
(
object_scale
)
&&
~
is
nan
(
object_scale
)
% We need to smooth the height-map over the scale of several cells.
Hs
=
imgaussfilt
(
H
,
3
*
object_scale
);
else
...
...
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