Commit 03516df2 authored by Turnhout, M.C. van's avatar Turnhout, M.C. van
Browse files

fix feedback counter

parent ab72501e
......@@ -73,15 +73,15 @@ end
% convert image RGB to image OD
iOD = cld_RGB2OD(double(im), Imax);
done = -1; p = 0;
done = 0; p = 0;
fprintf('Processing image: 0%% done')
for r = 1:size(im, 1)
for c = 1:size(im, 2)
p = p + 1; % update pixel count
if 100*p/numel(im) > done
if round(100*p/(numel(im)/3)) > done
% update feedback
done = done + 1;
done = round(100*p/(numel(im)/3));
fprintf('\b\b\b\b\b\b\b\b\b%3i%% done', done)
end
......@@ -102,6 +102,7 @@ for r = 1:size(im, 1)
R(r, c, :) = PQR(:, 3);
end
end
fprintf('\b\b\b\b\b\b\b\b\bready!\n')
% part of ClDlab: https://gitlab.tue.nl/STEM/ClDlab
end
\ No newline at end of file
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