当前位置:网站首页>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
边栏推荐
- Global and Chinese market of pressure gauges 2022-2028: Research Report on technology, participants, trends, market size and share
- Storage of data
- Fabric. JS background is not affected by viewport transformation
- php/js cookie共享跨域的问题
- Financial portal related information
- 指针使用详解
- Foreign trade marketing website system development function case making
- Fabric. JS gradient
- Basic use of form
- Gee: create a new feature and set corresponding attributes
猜你喜欢

Gee: remote sensing image composite and mosaic

paddle: ValueError:quality setting only supported for ‘jpeg‘ compression
![Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]](/img/1e/cf0aa09c2fce2278386f12eae4a6cd.jpg)
Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]

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

Fabric.js IText 手动设置斜体

函数栈帧的创建和销毁
![[technical notes-08]](/img/52/0aff21b01ba7adbfcdb597d1aa85f9.png)
[technical notes-08]

Storage of data

A collection of commonly used plug-ins for idea development tools

Appnuim environment configuration and basic knowledge
随机推荐
线程池批量处理数据
Paddlepaddle project source code
Gee series: unit 8 time series analysis in Google Earth engine [time series]
Determine whether there is an element in the string type
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]
Fabric. JS free draw rectangle
黑马笔记---Map集合体系
Fabric. JS basic brush
Fabric. JS iText set italics manually
运维工作的“本手、妙手、俗手”
Fabric.js 激活输入框
Record sentry's path of stepping on the pit
Global and Chinese markets for marine selective catalytic reduction systems 2022-2028: Research Report on technology, participants, trends, market size and share
MySQL foundation --- query (learn MySQL foundation in 1 day)
Gee series: unit 6 building various remote sensing indexes in Google Earth engine
简单封装 js并应用
Importation de studio visuel
Detailed explanation of Pointer use
"Original, excellent and vulgar" in operation and maintenance work
Fabric.js 自由绘制矩形