~gerald-mwangi/+junk/ThesisMatlab

« back to all changes in this revision

Viewing changes to Matlab/ThesisCode/Visualization/OpticalFlow/curvatureToEPETV.m

  • Committer: gerald.mwangi at gmx
  • Date: 2016-10-21 14:05:28 UTC
  • Revision ID: gerald.mwangi@gmx.de-20161021140528-mdlbnyvjewdt0ez8
added plot script2

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
medepe=[];
30
30
medcurv=[];
31
31
 
32
 
wsize=100;
 
32
wsize=0;
33
33
[w,h]=size(epe)
34
34
for y0=1:(h-wsize)
35
35
    for x0=1:(w-wsize)
41
41
end
42
42
size(curv)
43
43
 
44
 
numcurvebin=20;
 
44
numcurvebin=40;
45
45
curvebinstep=(max(medcurv)-min(medcurv))/numcurvebin;
46
46
 
47
47
curvebins=(min(medcurv):curvebinstep:max(medcurv))';
61
61
    barepe=[barepe,meanepeval/count];
62
62
end
63
63
figure;
64
 
bar(curvebins,[barepe,0]);
 
64
pl=bar(curvebins,[barepe,0]);
65
65
curvebins
66
66
barepe
67
67
title('TV','Interpreter','Latex');
68
68
set(gca,'FontSize',30)
69
69
set( get( gca, 'Title' ), 'fontSize', 30 )
70
70
xlabel('$$\kappa$$','Interpreter','Latex','fontSize', 30)
71
 
ylabel('EPE','Interpreter','Latex','fontSize', 30)
72
 
axis([min(medcurv) max(medcurv) min(barepe) max(barepe)])
73
 
 
 
71
ylabel('EPE','fontSize', 30)
 
72
axis([min(medcurv) max(medcurv) 0 max(barepe)])
 
73
xcurvbins=round(min(medcurv)):round(max(medcurv))
 
74
 set(gca,'XTick',xcurvbins);
 
75
  %set(gca,'XTickLabelRotation',45);
 
76
 set(gca,'TickDir','out');
 
77
%set(gca,'XTickLabel',curvebins);
74
78
drawnow;
75
 
 
 
79
saveas(pl,strcat(dirname,'EPEToCurvTV.png'));
76
80
end
77
81