Commit 9042b518 authored by Jean-Yves TINEVEZ's avatar 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
......@@ -13,7 +13,7 @@ function [ curvMean, curvGauss, curvK1, curvK2 ] = compute_curvatures( H, object
pixel_size = 1;
end
if nargin >= 2 && ~isnan( object_scale) && ~isempty( object_scale )
if nargin >= 2 && ~isempty( object_scale ) && ~isnan( object_scale)
% We need to smooth the height-map over the scale of several cells.
Hs = imgaussfilt( H, 3 * object_scale );
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment