实线最小外接矩形的直角顶点坐标:
fd=fopen('C:UsersQinDesktop1112.txt','w');
for i=1:size(solidLines,2)
for k=1:size(solidLines{1,i},2)
for j=1:5
fprintf(fd,'%f,%f
',[clusterOut(solidLines{1,i}(k)).rectx(j),clusterOut(solidLines{1,i}(k)).recty(j)]);
end
fprintf(fd,'
');
end
end
fclose(fd);
实线的MBR中心坐标:
fd=fopen('C:UsersQinDesktop1112.txt','w');
for i=1:size(solidLines,2)
for k=1:size(solidLines{1,i},2)
fprintf(fd,'%f,%f
',[clusterOut(solidLines{1,i}(k)).center(1),clusterOut(solidLines{1,i}(k)).center(2)]);
end
end
fclose(fd);