% Sample plotting utility that shows how to read the ground truth data % in the BUHMAP DB video database. % % by Ismail Ari % Dept. of Computer Engineering, % Bogazici University clear, clc fullpath = 'didem_2_1.vpoints'; % Read the points into a matrix pointMatrix = dlmread(fullpath); nFrames = size(pointMatrix, 1); for iFrame = 1:nFrames pointArray = pointMatrix(iFrame,:); % points x = pointArray(1:2:end); y = pointArray(2:2:end); plot(x,y,'*','MarkerEdgeColor','b','MarkerFaceColor', 'k' ... ,'MarkerSize',3); axis equal axis ij axis([0 640 0 480]) drawnow pause(0.01) end