資源簡介
Gabor濾波后的GIST特征提取matlab代碼

代碼片段和文件信息
%?%?EXAMPLE?1
%?%?Load?image
%?img1?=?imread(‘demo1.jpg‘);
%?
%?%?Parameters:
%?clear?param
%?param.imageSize?=?[256?256];?%?it?works?also?with?non-square?images
%?param.orientationsPerScale?=?[8?8?8?8];
%?param.numberBlocks?=?4;
%?param.fc_prefilt?=?4;
%?
%?%?Computing?gist?requires?1)?prefilter?image?2)?filter?image?and?collect
%?%?output?energies
%?[gist1?param]?=?LMgist(img1?‘‘?param);
%?
%?%?Visualization
%?figure
%?subplot(121)
%?imshow(img1)
%?title(‘Input?image‘)
%?subplot(122)
%?showGist(gist1?param)
%?title(‘Descriptor‘)
%?EXAMPLE?2
%?Load?image?(this?image?is?not?square)
img2?=?imread(‘demo2.jpg‘);
%?Parameters:
clear?param?
%param.imageSize.?If?we?do?not?specify?the?image?size?the?function?LMgist
%???will?use?the?current?image?size.?If?we?specify?a?size?the?function?will
%???resize?and?crop?the?input?to?match?the?specified?size.?This?is?better?when
%???trying?to?compute?image?similarities.
param.orientationsPerScale?=?[8?8?8?8];
param.numberBlocks?=?4;
param.fc_prefilt?=?4;
%?Computing?gist?requires?1)?prefilter?image?2)?filter?image?and?collect
%?output?energies
[gist2?param]?=?LMgist(img2?‘‘?param);
%?Visualization
figure
subplot(121)
imshow(img2)
title(‘Input?image‘)
subplot(122)
showGist(gist2?param)
title(‘Descriptor‘)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????8385??2013-07-21?16:23??Gist特征\LMgist.m
?????文件???????53518??2009-11-21?02:21??Gist特征\demo1.jpg
?????文件?????5957076??2013-07-21?16:24??Gist特征\demo2-Gabor.fig
?????文件??????207479??2011-11-27?02:24??Gist特征\demo2.jpg
?????文件????????1276??2013-07-21?15:39??Gist特征\demoGist.m
?????文件?????????522??2009-11-21?02:21??Gist特征\imresizecrop.m
?????文件????????1952??2013-07-21?15:39??Gist特征\showGist.m
?????目錄???????????0??2013-08-01?11:24??Gist特征\
- 上一篇:lte鏈路層 matlab仿真4
- 下一篇:唐山市矢量化地圖
評論
共有 條評論