资源简介
基于颜色特征和纹理特征的matlab原程序文件
代码片段和文件信息
function LoadImageTexture(hobjecthandles)
QueryImageName = uigetfile({‘*.jpg;*.gif;*.tif;*.bmp‘‘Pictures(*.jpg*.gif*.tif*.bmp)‘;‘*.*‘‘All Files(*.*)‘});
level = 3;
FV_e =[];
FV_std = [];
QueryImage = imread(QueryImageName);
if length(size(QueryImage))==3
image1 = RGB2GRAY(QueryImage);
else
image1 = QueryImage;
end
[YlYh] = dtwavexfm2(image1level‘near_sym_b‘‘qshift_b‘);
sz = size(Yl);
FV_e(1) = sum(abs(Yl(:)))/sz(1)*sz(2);
FV_std(1) = std(abs(Yl(:)));
matric = [];
for i=1:level
for j=1:6
matric = Yh{i1}(::j);
sz = size(matric);
%FV_e((i-1)*6+1+j) = sum(abs(matric(:)))/(sz(1)*sz(2));
%FV_std((i-1)*6+1+j) = std(abs(matric(:)));
FV_e((i-1)*6+j) = sum(abs(matric(:)
评论
共有 条评论