- 1、本文档共8页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
【谷速软件编程】matlab源码-基于哈希编码图像检索
??对于原空间数据,对其中心化(center the dada)后在量化阶段阈值为0,整个编码压缩过程的代码为:XX = XX * randn(size(XX,2),bit);Y = zeros(size(XX));Y(XX=0)=1;??????%原数据中心化后,阈值设为0。大于0编码为1,小于0编码为0Y = compactbit(Y);??%将二进制用十进制表示①表1中对于LSH的投影过程(Projection)是数据独立(data-independent),对于data-independent,[2]中指出”Generally, data-independent methods need longer codes than data-dependent methods to achieve satisfactory performance”,即要获得比数据非独立方法一样满意的表现,数据独立方法需要更长的编码。实验代码主要部分:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Function: this is a geometric illustration of LSH recall precision%curves along with the code length changes%Author: Willard (Yuan Yong English Name)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%?close?all;clear?variables;clc;load?cifar_10yunchao.mat;X=cifar10;X=X(:,1:end-1);?%Get the recall precision[recall{1,1}, precision{1,1}] = test(X, 16,?LSH);[recall{1,2}, precision{1,2}] = test(X, 24,?LSH);[recall{1,3}, precision{1,3}] = test(X, 32,?LSH);[recall{1,4}, precision{1,4}] = test(X, 64,?LSH);[recall{1,5}, precision{1,5}] = test(X, 128,?LSH);?% Draw the plotfigure; hold?on;grid?on;plot(recall{1, 1}, precision{1, 1},g-^,linewidth,2);plot(recall{1, 2}, precision{1, 2},b-s,linewidth,2);plot(recall{1, 3}, precision{1, 3},k-p,linewidth,2);plot(recall{1, 4}, precision{1, 4},m-d,linewidth,2);plot(recall{1, 5}, precision{1, 5},r-o,linewidth,2);xlabel(Recall);ylabel(Precision);legend(LSH-16 bit,LSH-24 bit,LSH-32 bit,LSH-64 bit,LSH-128 bit,Location,NorthEast);图 1实验数据库是从cifar10中提取出来的320维gist特征,59k作为database,1k作为查询数据。正如图1所示,随着编码位数的增加,PR曲线呈增长趋势,mAP增大。?②PCA-ITQ, PCA-RR, LSH, SKLSH对比实验实验代码主要部分:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Function: this is a geometric illustration of Draw the recall precision curve%Author: Willard (Yuan Yong English Name)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%?close?all;clear?variables;clc;load?cifar_10yunchao.mat;X=cifar10;X=X(:,1:end-1);bit=32;?%Get the recall precision[recall{1,1}, precision{1,1}] = test(X, bit,?ITQ);[
您可能关注的文档
- 【英语】Unit 1《Section One Welcome to the unit》课件 1(译林版必修2).ppt
- 【英语】Section Four Using Language(人教版必修2)1课件.ppt
- 【英语】Unit 2《Section Four Using language》课件(人教版必修4).ppt
- 【英语】Unit 4《Section Two Reading and Comprehending》课件 2(人教版选修6).ppt
- 【英语】Unit 2《Section Three Using language》课件(人教版选修8).ppt
- 【英语】北师大版选修六Unit16 lesson1 Stories from History课件.ppt
- 【英语】Unit 3《Section One Warming up,Pre-reading and reading》课件(人教版必修3).ppt
- 【英语】unit 1 friendship Section One Warming up and Reading 课件1(人教版必修1).ppt
- 【英语】unit3 lesson1Festivals (北师大版必修1)课件.ppt
- 【英语】外研版选修六Module2 Grammar课件.ppt
文档评论(0)