MATLAB 读取TXT文件显示角点
cnt=21;
ldpath = sprintf(‘02Images/%d.png’,cnt);
f=imread(ldpath);
imshow(f);
hold on;
detectionfilename=strcat(‘asj_only_origin_txt’,num2str(cnt),’.txt’);
fid = fopen(detectionfilename,‘r’);
formatSpec = ‘%f\t%f’
sizeA = [2 Inf]
A = fscanf(fid,formatSpec,sizeA);
fclose(fid);
detection_corner=A’; %需要转置
hold on;
plot(detection_corner(:,2), detection_corner(:,1),‘gs’,‘MarkerSize’,3);
% original_corners1= filter_origion(original_corners,a_first);
set(gca,‘position’,[0 0 1 1])
set (gcf,‘Position’,[200,200,256,256])
MATLAB 算法直接显示角点
cnt=21;
ldpath = sprintf(‘02Images/%d.png’,cnt);
f=imread(ldpath);
f1=rgb2gray(f);
%%%%%%%%%%%%%%susan%%%%%%%%%%%%%
% f1=im2double(f);
% f1=rgb2gray(f1);
% [map, r, c]