![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matlab
记录bug的假程序员
这个作者很懒,什么都没留下…
展开
-
角点检测数据集网站
更新ingCPDA数据集https//users.monash.edu.au/~mawrangj/原创 2022-07-18 11:07:54 · 236 阅读 · 2 评论 -
MATLAB将数组写进txt
将数组写进txt原创 2022-07-05 10:58:32 · 792 阅读 · 0 评论 -
删除一个数组中和另一个数组中行元素相等的行
删除前一个数组中某行等于另一个数组整行的行原创 2022-07-05 10:03:31 · 137 阅读 · 0 评论 -
只筛选nr
只筛选Nr原创 2022-07-04 20:43:27 · 203 阅读 · 0 评论 -
计算两个向量的夹角
计算两个向量的夹角原创 2022-07-03 11:27:34 · 629 阅读 · 0 评论 -
参数调整F-score折线图
参数设置折线图:仅仅有F原创 2022-07-01 16:19:38 · 199 阅读 · 0 评论 -
matlab读取某个文件下的某一特定文件类型的所有文件
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%读取某个文件夹下的所有图片%%%%%%%%%%%%%%%%%%%%%%%%%%文件路径picpath=strcat(’.\02Images*.png’);namelist = dir(picpath)%文件列表的长度len = length(namelist);%遍历这个列表,把所有的图片便利一边并且输出图片for i = 1:len% picnamelist=[ picnamelist;namelist(i).name原创 2021-11-08 17:35:11 · 410 阅读 · 0 评论 -
保存各种角点检测算法在变换下的角点坐标
function Result=savedetecttxt() close all clc ticResult=[];methodfilename='hedetecttxt';for cnt =5:21cnt% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Rotation% %rotation transformation,from -90°to 90°,at 10° apart,exclu原创 2021-10-24 09:59:51 · 1139 阅读 · 0 评论 -
保存图片检测出来的角点位置,并且测试其正确性
function Result=detectresulttxt() close all clc tic%count is the coordinate of detected corners in test image%%No is the number of corners in the original imges%%Nt is the number of corners in the each of the transformed images%%Nr is the number of原创 2021-10-23 20:44:59 · 138 阅读 · 1 评论 -
canny边缘检测来自geekgeek网站
% importing the imageI = imread(‘graytestimg\11.bmp’);% subplot(2, 4, 1),% imshow(I);% title(‘Gray Scale Image’);% % Sobel Edge Detection% J = edge(I, ‘Sobel’);% subplot(2, 4, 2),% imshow(J);% title(‘Sobel’);%% % Prewitt Edge detection% K = edg原创 2021-10-23 10:28:51 · 1155 阅读 · 1 评论 -
matlab将数组按照行写入txt文件
fid=fopen(‘lines.txt’,‘wt’); %写入的文件,各函数后面有说明[m,n]=size(lines);for i=1:1:mfor j=1:1:nif j==nfprintf(fid,’%g\n’,lines(i,j));elsefprintf(fid,’%g\t’,lines(i,j));endendendfclose(fid);原创 2021-10-21 23:10:05 · 624 阅读 · 0 评论 -
MATLAB产生变换图片
function Result=main_create()close allclcticResult=[];for cnt =1:1ldpath = sprintf(‘02Images/%d.png’,cnt);% [I,map]=imread(ldpath);% imshow(I,map);%f=imread(ldpath);imshow(f);cnt% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%原创 2021-10-07 11:59:13 · 130 阅读 · 0 评论 -
MATLAB显示图片
**MATLAB显示图片**cnt=19;ldpath = sprintf(’%d.png’,cnt);f=imread(ldpath);f=im2double(f);f=rgb2gray(f);txtfilename=strcat(‘gttxt/’,num2str(cnt),’.txt’);a_first=getCoord(txtfilename)% % susan% % [map, r, c] = susanCorner(f);% % original_corners=[r,c]原创 2021-09-30 16:16:01 · 630 阅读 · 0 评论 -
matlab画折线图
p=‘plot_scale.xlsx’;a=xlsread§;x=a(1,:);%x轴上的数据,第一个值代表数据开始,第二个值代表间隔,第三个值代表终止susan=a(2,:);%a数据y值HarrisLaplace=a(3,:);MSCP=a(4,:);CPDA=a(5,:);HeYung=a(6,:);FastCPDA=a(7,:);DOG=a(8,:);GCM=a(9,:);ANDD=a(10,:);MSRJ=a(11,:);ZhangSun=a(12,:);WEAE=a(原创 2021-09-25 14:27:18 · 795 阅读 · 0 评论 -
MATLAB 读取TXT文件显示角点
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 = fsc原创 2021-09-23 21:22:52 · 155 阅读 · 0 评论 -
角点测评可重复率函数原始
角点测评可重复率函数原始function Result=Comparison_cpda() close all clc tic Result=[]; parfor cnt =1:23 cnt ldpath = sprintf('%d.bmp',cnt); f=imread(ldpath); [original_corners]=cpda(f);原创 2021-09-22 23:34:32 · 244 阅读 · 0 评论