資源簡介
這是matlab版的SURF算法源碼,下載即可使用。很好很強大,請仔細體會里面算法代碼。

代碼片段和文件信息
%?Example?2?Corresponding?points
%?Load?images
??I1=imread(‘TestImages/testc1.png‘);
??I2=imread(‘TestImages/testc2.png‘);
%?Get?the?Key?Points
??Options.upright=true;
??Options.tresh=0.0001;
??Ipts1=OpenSurf(I1Options);
??Ipts2=OpenSurf(I2Options);
%?Put?the?landmark?descriptors?in?a?matrix
??D1?=?reshape([Ipts1.descriptor]64[]);?
??D2?=?reshape([Ipts2.descriptor]64[]);?
%?Find?the?best?matches
??err=zeros(1length(Ipts1));
??cor1=1:length(Ipts1);?
??cor2=zeros(1length(Ipts1));
??for?i=1:length(Ipts1)
??????distance=sum((D2-repmat(D1(:i)[1?length(Ipts2)])).^21);
??????[err(i)cor2(i)]=min(distance);
??end
%?Sort?matches?on?vector?distance
??[err?ind]=sort(err);?
??cor1=cor1(ind);?
??cor2=cor2(ind);
%?Show?both?images
??I?=?zeros([size(I11)?size(I12)*2?size(I13)]);
??I(:1:size(I12):)=I1;?I(:size(I12)+1:size(I12)+size(I22):)=I2;
??figure?imshow(I/255);?hold?on;
%?Show?the?best?matches
??for?i=1:30
??????c=rand(13);
??????plot([Ipts1(cor1(i)).x?Ipts2(cor2(i)).x+size(I12)][Ipts1(cor1(i)).y?Ipts2(cor2(i)).y]‘-‘‘Color‘c)
??????plot([Ipts1(cor1(i)).x?Ipts2(cor2(i)).x+size(I12)][Ipts1(cor1(i)).y?Ipts2(cor2(i)).y]‘o‘‘Color‘c)
??end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1211??2010-09-06?12:26??SURF源碼(matlab版)\OpenSURF_version1c\example2.m
?????文件???????1776??2010-09-06?13:00??SURF源碼(matlab版)\OpenSURF_version1c\example3.m
?????文件???????1335??2010-09-06?07:21??SURF源碼(matlab版)\OpenSURF_version1c\license.txt
?????文件???????3778??2010-09-06?12:27??SURF源碼(matlab版)\OpenSURF_version1c\OpenSurf.m
?????文件?????641272??2010-11-08?17:14??SURF源碼(matlab版)\OpenSURF_version1c\opensurf.png
?????文件????????603??2010-07-26?16:56??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\FastHessian_BuildDerivative.m
?????文件???????1699??2010-07-29?12:10??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\FastHessian_buildResponsela
?????文件???????1877??2010-07-20?12:37??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\FastHessian_buildResponseMap.m
?????文件???????2353??2010-07-30?11:43??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\FastHessian_getIpoints.m
?????文件????????455??2010-07-26?16:56??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\FastHessian_getLaplacian.m
?????文件????????450??2010-07-26?16:56??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\FastHessian_getResponse.m
?????文件???????2478??2010-07-30?11:02??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\FastHessian_interpolateExtremum.m
?????文件???????1680??2010-07-30?10:56??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\FastHessian_isExtremum.m
?????文件????????738??2010-07-29?16:32??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\FastHessian_Responsela
?????文件????????791??2010-07-29?10:58??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\IntegralImage_BoxIntegral.m
?????文件????????494??2010-07-29?16:32??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\IntegralImage_HaarX.m
?????文件????????556??2010-07-29?16:37??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\IntegralImage_HaarY.m
?????文件????????796??2010-07-29?10:42??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\IntegralImage_IntegralImage.m
?????文件???????1089??2010-07-30?11:39??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\PaintSURF.m
?????文件???????1554??2010-07-30?12:39??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\SurfDesc
?????文件???????3636??2010-07-30?12:40??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\SurfDesc
?????文件???????2921??2010-07-30?12:07??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions\SurfDesc
?????文件?????239755??2010-09-06?12:22??SURF源碼(matlab版)\OpenSURF_version1c\TestImages\lena1.png
?????文件?????211716??2010-09-06?12:22??SURF源碼(matlab版)\OpenSURF_version1c\TestImages\lena2.png
?????文件???????5296??2010-07-19?17:38??SURF源碼(matlab版)\OpenSURF_version1c\TestImages\test.png
?????文件?????123228??2010-07-26?13:06??SURF源碼(matlab版)\OpenSURF_version1c\TestImages\testc1.png
?????文件?????122063??2010-07-26?13:06??SURF源碼(matlab版)\OpenSURF_version1c\TestImages\testc2.png
?????文件???????9721??2010-09-06?13:04??SURF源碼(matlab版)\OpenSURF_version1c\WarpFunctions\affine_warp.m
?????目錄??????????0??2015-04-20?10:16??SURF源碼(matlab版)\OpenSURF_version1c\SubFunctions
?????目錄??????????0??2015-04-20?10:16??SURF源碼(matlab版)\OpenSURF_version1c\TestImages
............此處省略6個文件信息
- 上一篇:第二計算機語言MATLAB
- 下一篇:MATLAB多方法去高斯白噪聲.doc
評論
共有 條評論