clear all;
file_path1 ='E:\U 盘\MATLAB\选择五点\角度-磁场\-45°\';
img_path_list1 = dir(strcat(file_path1,'*.bmp'));
Len= length(img_path_list1); % 获取图像总数量 (三个图片文件夹中图片数量一致)
for i=1:Len
Img = imread([file_path1,'-45°',num2str(i-1),'.bmp']);
imshow(Img)
[x,y] = ginput(100);
zuobiao=[x,y];
xlRange=['A',int2str(i+1)];
xlswrite('C:\Users\ZTL\Desktop\image\tu',zuobiao,'Sheet1',xlRange);
close all
end
%xlswrite( 'a.xls',magic(3),'Sheet1',['A',int2str(i)]);