资源简介
提取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
相关资源
- radar process toolbox 雷达信号处理的mat
- wind coefficient
- 三相PWM整流
- mask code mask 匀光处理代码
- pfc rec moni 三相逆变器的仿真模型
- Sound quality calculation 声品质的计算程序
- M2M4method SNR estimation 基于信号二阶四阶
- elman load forecast
- matlab 干涉SAR数据的基本处理
- 多帧融合差分法
- Power electronic simulation handouts 山东大学
- hmm 自己修改的程序代码
- GUI界面设计并附有案例
- PRACHDETECTION
- 多输入多输出系统解耦控制
- sfs code
- 一维信号压缩还原信号
- 获取图片点坐标
- 掌纹识别
- CVRP 一个用蚁群算法做OCVRP的代码。不
- matlab拍照
- matlab读入IGS文件
- matlab的车牌定位提取
- matlab的高帽变换
- 简单的Matlab人脸识别
- 图片三维重建工具箱
- 神经网络与adaboost的强分类器
- 3D 打印技术
- 单一图像去雾
- 声纹识别
评论
共有 条评论