实线矢量元素提取
实线最小外接矩形的直角顶点坐标:
fd=fopen('C:\Users\Qin\Desktop\1112.txt','w');
for i=1:size(solidLines,2)
for k=1:size(solidLines{1,i},2)
for j=1:5
fprintf(fd,'%f,%f\r\n',[clusterOut(solidLines{1,i}(k)).rectx(j),clusterOut(solidLines{1,i}(k)).recty(j)]);
end
fprintf(fd,'\r\n\r\n');
end
end
fclose(fd);
实线的MBR中心坐标:
fd=fopen('C:\Users\Qin\Desktop\1112.txt','w');
for i=1:size(solidLines,2)
for k=1:size(solidLines{1,i},2)
fprintf(fd,'%f,%f\r\n',[clusterOut(solidLines{1,i}(k)).center(1),clusterOut(solidLines{1,i}(k)).center(2)]);
end
end
fclose(fd);