• 大小: 0.25M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-04-21
  • 语言: Matlab
  • 标签: MATLAB  gist  

资源简介

提取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‘)




 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-11-22 16:17  GIST_matlab\
     文件       53518  2009-11-21 02:21  GIST_matlab\demo1.jpg
     文件      207479  2011-11-27 02:24  GIST_matlab\demo2.jpg
     文件        1230  2011-12-12 06:22  GIST_matlab\demoGist.m
     文件         522  2009-11-21 02:21  GIST_matlab\imresizecrop.m
     文件        8240  2011-12-12 06:20  GIST_matlab\LMgist.m
     文件        1954  2011-12-12 05:53  GIST_matlab\showGist.m
     目录           0  2011-12-13 10:57  GIST_matlab\__MACOSX\
     文件         171  2011-12-12 06:22  GIST_matlab\__MACOSX\._demoGist.m
     文件         171  2011-12-12 06:20  GIST_matlab\__MACOSX\._LMgist.m
     文件         171  2011-12-12 05:53  GIST_matlab\__MACOSX\._showGist.m

评论

共有 条评论