function feature = LbpDescriptor(config_file,outFName,img ,gridY,gridX)
% this function calculate the LBP descriptorr
% Input:
% config_file: config all the parameter
% img: the normalized img
%% initial
eval(config_file);
img = rgb2gray(img);
%% local binary pattern
feature = [];
%% Divide the img into DivNum*DivNum parts
for i = 1 : DivNum
for j = 1:DivNum
% obtain the part of the imgs
img_part = img( (gridY(i)+1):gridY(i+1) , (gridX(j)+1):gridX(j+1),: );
tmp = [lbp_riu81(img_part),lbp_riu162(img_part),lbp_riu243(img_part)];
feature = [feature;tmp'];
end
end
if sum(feature)~=0
feature=feature/sum(feature);
end
save(outFName,'feature');
LbpDescriptor.zip_LBP描述子_lbp特征描述子_lbp编码_site:www.pudn.com_编码 特征提
版权申诉
43 浏览量
2022-07-14
08:19:00
上传
评论
收藏 538B ZIP 举报
weixin_42653672
- 粉丝: 93
- 资源: 1万+
最新资源
- 测试aaaaaaabbbbb
- VID20240521070643.mp4
- Android系统原理与开发学习要点详解-培训课件.zip
- 部署yolov8的tensorrt模型支持检测分割姿态估计的C++源码+部署步骤.zip
- 以简单、易用、高性能为目标、开源的时序数据库,支持Linux及Windows, Time Series Database.zip
- python-leetcode面试题解之第198题打家劫舍-题解.zip
- python-leetcode面试题解之第191题位1的个数-题解.zip
- python-leetcode面试题解之第186题反转字符串中的单词II-题解.zip
- 一个基于python的web后端高性能开发框架,下载可用
- python-leetcode面试题解之第179题最大数-题解.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈