imFeaLbp
Local binary pattern for images
Contents
Syntax
- patchHist = imFeaLbp(im)
- patchHist = imFeaLbp(im, opt)
- patchHist = imFeaLbp(im, opt, showPlot)
- [patchHist, lbpIm] = imFeaLbp(...)
Description
patchHist = imFeaLbp(im, opt, showPlot) returns the aggregated patch histogram of LBP (local binary patterns)
- im: Given image
- opt: Options for LBP computation
- opt.patchSideCount: The whole image is divided into patchSideCount(1)-by-patchSideCount(2) sub images
- opt.weight: Weight for creating the LBP
- showPlot: 1 for plotting the results
[patchHist, lbpIm] = imFeaLbp(...) returns the LBP image as well.
Example
im=imread('catPangPang.png'); opt=imFeaLbp('defaultOpt'); opt.patchSideCount=[5 3]; [patchHist, lbpIm]=imFeaLbp(im, opt, 1);
![](imFeaLbp_help_01.png)
![](imFeaLbp_help_02.png)