永发信息网

matlab中怎么把生成的数据输出

答案:1  悬赏:40  手机版
解决时间 2021-12-26 05:19
  • 提问者网友:半生酒醒
  • 2021-12-26 01:20
clear;
close all
%read the two images
I1=imread('43.png');
I1=imresize(I1,0.5);
I1=rgb2gray(I1);
I2=imread('60.png');
I2=imresize(I2,0.5);
I2=rgb2gray(I2);

%find SURF features
points1=detectSURFFeatures(I1);
points2=detectSURFFeatures(I2);

%extract the features
[f1,vpts1]=extractFeatures(I1,points1);
[f2,vpts2]=extractFeatures(I2,points2);

%matches
indexPairs=matchFeatures(f1,f2,'Prenormalized',true);
matched_pts1=vpts1(indexPairs(:,1));
matched_pts2=vpts2(indexPairs(:,2));

%display the matched results
figure('name','result');
showMatchedFeatures(I1,I2,matched_pts1,matched_pts2);
legend('matched points 1','matched points 2');
现在想把生成的matched_pts1里location中的数据输出到一个TXT中,怎么做?求大神帮忙啊!
最佳答案
  • 五星知识达人网友:神的生死簿
  • 2022-01-06 09:12
matlab中怎么把生成的数据输出
用xlswrite('a.xls',a)命令不会当一维数组处理的,存完后是2行3列的,你再试试看
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯