X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=sidebyside;f=src%2FTests_hough%2Fshow_votes_figure.m;fp=src%2FTests_hough%2Fshow_votes_figure.m;h=f6856d4e98a3f3399a97b7a64218a5d3dd93a026;hb=0ff8fb82457bd5a858b2218ab07f69c81323537e;hp=0000000000000000000000000000000000000000;hpb=c6fe9d606eff98fc73b75f23e02a9fd436458ed0;p=master-thesis.git diff --git a/src/Tests_hough/show_votes_figure.m b/src/Tests_hough/show_votes_figure.m new file mode 100644 index 0000000..f6856d4 --- /dev/null +++ b/src/Tests_hough/show_votes_figure.m @@ -0,0 +1,26 @@ +function [hlink, axes] = show_votes_figure(name, images) + f = figure; + f.Name = name; + f.Position = [100 100 1300 900]; + + norm = @(A) (A - min(A(:)))/(max(A(:)) - min(A(:))); + + for i = 1:size(images, 2) + axes(i) = subplot(2, 2, i); + %colormap(hsv); + surf(norm(double(images{i}{1})), 'FaceColor','interp', 'FaceLighting', 'gouraud', 'EdgeColor', 'none'); + camlight left; + shading interp; + colormap(jet(10)) + axis tight; + title(images{i}{2}); + view(axes(i), [-39.5 70]); + end + + hlink = linkprop(axes, {'CameraPosition', 'CameraUpVector'}); + + rotate3d on; +end + + +