Skip to content
Snippets Groups Projects
Commit f80a4a94 authored by vand's avatar vand
Browse files

Typo in saving

parent dc749074
Branches
No related tags found
No related merge requests found
......@@ -6,3 +6,10 @@ data_folder = '../data_folder';
annotate_gui(data_folder)
%annotate_gui(data_folder,'annotations',YXZ)
%%
load ANNOTIONS_YXZR
make_histogram(YXZR)
disp(['Total number of annotations: ', num2str(size(YXZR,1))])
disp(['Total radius: ', num2str(sum(YXZR(:,4)))])
\ No newline at end of file
......@@ -78,7 +78,7 @@ figure(fig_3D), hold on, axis vis3d, figure(fig_main)
fid = fopen('annotations.txt','w');
fprintf(fid,'%d, %d, %d, %d \n',round(YXZR)');
fclose(fid);
save('ANNOTIONS_YXZR.mat','YXZR')
save('ANNOTATIONS.mat','YXZR')
disp('Ok, saved!')
xlabel('Saved.')
drawnow
......
function make_histogram(YXZR)
max_R = max(YXZR(:,4));
r = 1:max_R;
figure
h = hist(YXZR(:,4),r);
bar(r,h)
xlabel('Radius (pixels)')
ylabel('Count')
axis([0, max_R+1, 0, 1.1*max(h)])
title('Radius histogram')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment