Add some tests on different variations of Hough algorithm.
[master-thesis.git] / src / Tests_hough / show_votes_figure.m
1 function [hlink, axes] = show_votes_figure(name, images)
2     f = figure;
3     f.Name = name;
4     f.Position = [100 100 1300 900];
5     
6     norm = @(A) (A - min(A(:)))/(max(A(:)) - min(A(:)));
7         
8     for i = 1:size(images, 2)            
9         axes(i) = subplot(2, 2, i);        
10         %colormap(hsv);
11         surf(norm(double(images{i}{1})), 'FaceColor','interp', 'FaceLighting', 'gouraud', 'EdgeColor', 'none'); 
12         camlight left;
13         shading interp;
14         colormap(jet(10))
15         axis tight;
16         title(images{i}{2});
17         view(axes(i), [-39.5 70]);        
18     end
19     
20     hlink = linkprop(axes, {'CameraPosition', 'CameraUpVector'});
21     
22     rotate3d on;    
23 end
24
25
26