资源简介

matlab的lbp代码。有均匀模式、旋转不变模式、旋转不变等价模式等。

资源截图

代码片段和文件信息

% GETMAPPING returns a structure containing a mapping table for LBP codes.
 %  MAPPING = GETMAPPING(SAMPLESMAPPINGTYPE) returns a
 %  structure containing a mapping table 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.1
 % Authors: Marko Heikkil?and Timo Ahonen


 % Changelog
 % 0.1.1 C

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        2842  2020-09-19 21:26  LBP\getmapping.m
     文件        6250  2020-09-19 21:26  LBP\lbp.m
     文件         438  2020-09-19 21:26  LBP\lbptest.m
     文件       33807  2020-09-19 21:26  LBP\lena.jpg

评论

共有 条评论

相关资源