-
大小: 2KB文件类型: .m金币: 1下载: 0 次发布日期: 2021-06-08
- 语言: Matlab
- 标签: lbp getmapping.m
资源简介
lbp matlab程序中的getmapping文件
代码片段和文件信息
%GETMAPPING returns a mapping table for LBP codes.
% MAPPING = GETMAPPING(SAMPLESMAPPINGTYPE) returns a mapping for
% LBP codes in a neighbourhood of SAMPLES sampling
% points. Possible values for MAPPINGTYPE are
% ‘u2‘ for uniform LBP
% ‘ri‘ for rotation-invariant LBP
% ‘riu2‘ for uniform rotation-invariant LBP.
%
% Example:
% I=imread(‘rice.tif‘);
% MAPPING=getmapping(16‘riu2‘);
% LBPHIST=lbp(I216MAPPING‘hist‘);
% Now LBPHIST contains a rotation-invariant uniform LBP
% histogram in a (162) neighbourhood.
%
function mapping = getmapping(samplesmappingtype)
% Version 0.1
% Authors: Marko Heikkil?and Timo Ahonen
mapping = 0:2^samples-1;
newMax = 0; %number of patterns in the resulting LBP code
index = 0;
if strcmp(mappingtype‘u2‘) %Uniform 2
newMax = samples*(samples-1) + 3;
for i = 0:2^samples-1
j = bitset(bitshift(i1samples)1bitget(isamples)); %rotate left
numt = sum(bitget(bitxor(ij)1:samples)); %number of 1->0 and
%0->1 transitions
%in binary string
相关资源
- LBP四种特征提取算法
- 表情识别 源码Matlab LBP+LPQ SVM PCA
- CLBP人脸识别程序及运行结果
- matlab常用纹理特征提取方法GLCM,GLD
- matlab开发-MeshLBP
- 改变旧MATLAB函数的CLBP
- lbp MATLAB代码
- LBP特征提取 程序 代码 MATLAB版
- 图像lbp特征提取的MATLAB实现源码
- 基于多尺度块的LBP(MB-LBP)代码(m
- HOG+LBP的行人检测
- GaborGMRFLBP纹理特征提取方法_MATLAB
- 结合查找法做的旋转不变性LBP特征提
- 局部二值模式(Local Binary Patterns)图
- lab的matlab实现
- LBP图像特征提取matlab程序
- lbp特征提取算法
- LBP纹理特征官方MATLAB代码和测试用例
- 基于MATLAB的LBP图片特征提取算法,人
- 支持lbp直方图的图像相似度计算
- LBP算法的Matlab代码
- 局部二值模式进行编码的人脸识别
- 多尺度LBP
- LBP(局部二值模式)特征提取
- LBP方法
- LBP特征提取的MATLAB实现
- LBP-DBN人脸识别matlab代码
- matlab实现HOG+LBP+HIKSVM行人检测算法
- 三种LBP模式的子程序
- MATLAB实现LTP和LBP算法
评论
共有 条评论