Commit b95e71f7 authored by Jean-Yves TINEVEZ's avatar Jean-Yves TINEVEZ
Browse files

Avoid type errors when the segmentation is on ints.

parent 44d3844b
......@@ -30,6 +30,11 @@ function obj = from_heightmap( ...
pixel_size = 1.;
end
%% Safe conversion
I = double( I );
H = double( H );
%% Load objects from segmentation mask.
fprintf('Converting mask to objects.\n' )
......
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