資源簡介
給目標物畫標注框(matlab程序)
代碼片段和文件信息
%%%%%%以下程序為畫框
clc;
clear;
maindir=‘C:\Users\YL\Desktop\第二次樣本\jpg\‘;??
savefile=‘C:\Users\YL\Desktop\output.txt‘;
sub=dir(maindir);
?fp?=?fopen(savefile‘wt‘);
for?i=1:length(sub)
????if?~strcmp(sub(i).name‘.‘)?&&?~strcmp(sub(i).name‘..‘)
????????adress=strcat(maindirsub(i).name);
????????picture=imread(adress);
?????????imshow(picture);
??????????k?=?waitforbuttonpress;??????????????%?等待鼠標按下
?????????point1?=?get(gca‘CurrentPoint‘);????%?鼠標按下了
- 上一篇:血管的三維重建
- 下一篇:小波矩特征提取matlab代碼
評論
共有 條評論