当前位置:网站首页>Opencv LBP features
Opencv LBP features
2022-07-02 05:29:00 【Σίσυφος one thousand and nine hundred】
One 、 brief introduction
Opencv And LBP features ( Algorithm ) - My pot - Blog Garden
LBP(Local Binary Pattern), namely Local binary mode , It is a nonparametric algorithm that describes the local features of the gray relationship between image feature pixels and each pixel , It is also an efficient texture description algorithm . For a pixel with a radius r Draw a circle , Take... From the circle K A little bit ( It's usually 8), this K The value of a point ( The pixel value greater than the center point is 1, Otherwise 0) form K Bit binary number . This is the local binary pattern , What is used in practice is LBP Square statistical graph of characteristic spectrum . In the old version of Opencv in , Use CvHaarClassifierCascade function , Only support Harr features . The new version uses CascadeClassifier class , It can also support LBP features
advantage :
1, Rotation invariance ( The local binary loop shifts left or right, and its representation remains unchanged )
2, To some extent, the problem of light change is eliminated
3, Texture feature dimension is low , Fast calculation
shortcoming :
1, When the light changes unevenly , The size relationship between pixels is destroyed , Corresponding LBP The operator changes
2, By introducing the definition of rotation invariance , send LBP The operator is more robust . But it also makes the LBP The operator lost direction information ( For example, move the local binary left or right , The result is the same , But the image is different )
Two 、 Gray scale invariance

The central gray value of the texture unit ( threshold ) by 85, rest 8 The adjacent gray values are :90、74、63、134、91、83、99、103、90. Calculate according to the theorem of threshold calculation , After the threshold calculation , According to the direction indicated by the arrow in the figure, a local binary pattern can be obtained , namely :LBP Pattern =1101001, And LBP=217,. Through the above LBP The calculation example of the algorithm can be seen LBP The value is only determined by the gray value of the central pixel and the gray value of eight adjacent pixels ,LBP The feature represents the feature of its central pixel , The calculation of its value also needs to be completed with the surrounding pixels , therefore ,LBP Features have a lot to do with their surroundings , It contains image points , It also contains edge and local feature distribution information .
3、 ... and 、 Rotation invariance LBP Algorithm
Through the introduction above , It's not hard to see 1LBP The algorithm is gray invariant , stay 2002 Of the paper in , In addition to grayscale invariance , The author is for LBP Rotation invariance and equivalent mode are introduced , How does it work ?
We know from the above introduction that , For a selected P,LBP Algorithm will generate 2^P Different output values , such as P=8 when , The value is 256 individual , this 256 Each of the three modes rotates around the center , Then in the process of many rotations , There are many different results , And the mode with the smallest median of these results is to choose the constant binary mode . such as :

What is illustrated in the above figure is , This one in the picture 8 Patterns , All have the same rotation invariant mode , The decimal system is 15 The value of , namely 00001111. So right. 256 Both modes do this rotation , Get the smallest number as the rotation invariant mode of this mode , There are rotation invariant modes 36 Kind of
边栏推荐
- Fabric. JS compact JSON
- 函数栈帧的创建和销毁
- Two implementation methods of delay queue
- Fabric. JS background is not affected by viewport transformation
- XSS basic content learning (continuous update)
- How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure
- 延时队列两种实现方式
- Gee data set: export the distribution and installed capacity of hydropower stations in the country to CSV table
- Global and Chinese market of cell culture freezers 2022-2028: Research Report on technology, participants, trends, market size and share
- Latest: the list of universities and disciplines for the second round of "double first-class" construction was announced
猜你喜欢

Fabric.js 右键菜单

centos8安装mysql8.0.22教程

Innovation never stops -- the innovation process of nvisual network visualization platform for Excel import

运维工作的“本手、妙手、俗手”

指针使用详解

Gee: create a new feature and set corresponding attributes

黑馬筆記---Set系列集合

Gee series: Unit 2 explore datasets

ThreadLocal memory leak

RNN recurrent neural network
随机推荐
Fabric. JS free draw rectangle
线程池概述
指针使用详解
Fabric.js 自由绘制矩形
7.1 simulation summary
Global and Chinese market of travel data recorder (VDR) 2022-2028: Research Report on technology, participants, trends, market size and share
ThreadLocal memory leak
el form 表单validate成功后没有执行逻辑
Global and Chinese market of pressure gauges 2022-2028: Research Report on technology, participants, trends, market size and share
Fabric.js 精简JSON
Fabric. JS iText set italics manually
Fabric. JS 3 APIs to set canvas width and height
Sliding window on the learning road
Determine whether there is an element in the string type
Software testing learning - day 4
paddle: ValueError:quality setting only supported for ‘jpeg‘ compression
Disable access to external entities in XML parsing
Youth training camp -- database operation project
7.TCP的十一种状态集
Essence and physical meaning of convolution (deep and brief understanding)