0001 function plotfigure_2( ifolder, frame, ext, positions, type, ofolder,color)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 MARKER_SIZE = 30;
0020
0021 if ~exist(strcat(ifolder,'/',ofolder),'dir')
0022 mkdir(strcat(ifolder,'/',ofolder));
0023 end
0024
0025 visName = strcat(ifolder,'/VIS/VIS_',...
0026 ifolder,num2str(frame),'.png');
0027 im = imread(visName);
0028
0029
0030 f= figure(1); clf(f);
0031 imshow(im); hold on;
0032
0033 for po = 1: size(positions,1)
0034 plot( positions(po,4), positions(po,5),...
0035 'Marker','o',...
0036 'MarkerEdgeColor',color,...
0037 'LineWidth',1,...
0038 'Color','k',...
0039 'MarkerSize',MARKER_SIZE);
0040 text( positions(po,4)+30, positions(po,5),...
0041 strcat(num2str(positions(po,3)),'_',type(po)),...
0042 'Color','g',...
0043 'HorizontalAlignment','center',...
0044 'VerticalAlignment','middle',...
0045 'FontSize',16);
0046 end
0047
0048 ofn = strcat(ifolder,'/',ofolder,'/',ofolder,'_',ifolder,num2str(frame),ext);
0049 fillfigure();
0050 exportfigure(ofn,f,size(im));
0051
0052 end