当前位置:网站首页>[texture feature extraction] LBP image texture feature extraction based on MATLAB local binary mode [including Matlab source code 1931]
[texture feature extraction] LBP image texture feature extraction based on MATLAB local binary mode [including Matlab source code 1931]
2022-07-07 11:46:00 【Poseidon light】
One 、 How to get the code
How to get the code 1:
The complete code has been uploaded to my resources :【 Texture feature extraction 】 be based on matlab Local binary mode LBP Image texture feature extraction 【 contain Matlab Source code 1931 period 】
How to get the code 2:
By subscribing to Ziji Shenguang blog Paid column , With proof of payment , Private Blogger , This code is available .
remarks :
Subscribe to Ziji Shenguang blog Paid column , Free access to 1 Copy code ( The period of validity From the Subscription Date , Valid for three days );
Two 、 Local binary mode LBP Introduction to image texture feature extraction
1 Local binary mode
LBP It is an algorithm used to describe the local texture features of an image , It has remarkable advantages such as rotation invariance and gray invariance . The original LBP Is in 3×3 In the window of , Take the pixel value of the central pixel as the threshold , The neighborhood 8 Compare the value of pixels with the threshold , If the pixel value of the neighborhood point is greater than the central pixel , Remember as 1, Otherwise the record for 0, Then follow the specified coding direction , Give different weights to different neighborhood points , Convert a binary sequence into an unsigned decimal number , And use this value as the LBP The eigenvalue , The process is shown in the figure 1 Shown .Ojala Originally proposed LBP The operator has the disadvantage of being unable to extract large-scale structure texture , To solve this problem ,Ojala Make improvements , take 3×3 Neighborhood extended to any neighborhood , And use circular neighborhood instead of square neighborhood , Improved LBP The operator is allowed to have a radius of R There are any number of pixels in the circular neighborhood of . Sum up , For an image S Any pixel on S(i,j), Will be with S(i,j) Centered , The radius is R Contains P The region of sampling points is called its local neighborhood (P,R), Then pixels S(i,j) Of LBP The value can be defined as :
In style :gc Represents the center pixel S(i,j) Gray value ,gp Represents the gray value of the sampling point . Obtained by this method LBP Value has linear grayscale invariance , But when the image rotates , Corresponding LBP The value will also change . In order to solve the problem of rotation invariance ,Ojala etc. [11] Based on rotation invariance LBP Algorithm . For the same central point , Binary coding with different neighborhood pixels as the starting point , Thus, a series of binary codes are obtained , Select the smallest value as the LBP value .
chart 1 Local binary pattern extraction process
3、 ... and 、 Partial source code
clc;close all;clear;
img=imread('lena512color.tiff');
img=imresize(img,[256,256]);
figure, imshow(img);
Four 、 Running results


5、 ... and 、matlab Edition and references
1 matlab edition
2014a
2 reference
[1] Cai Limei .MATLAB The image processing —— theory 、 Algorithm and example analysis [M]. tsinghua university press ,2020.
[2] Yang Dan , Zhao Haibin , Long Zhe .MATLAB Detailed explanation of image processing examples [M]. tsinghua university press ,2013.
[3] Zhou pin .MATLAB Image processing and graphical user interface design [M]. tsinghua university press ,2013.
[4] Li Song , Cai hang , Yu Meng . Texture feature extraction method based on adaptive local binary pattern [J]. Computer applications and software . 2019,36(09)
3 remarks
This part of the introduction is taken from the Internet , For reference only , If infringement , Contact deletion
边栏推荐
- STM32入门开发 编写DS18B20温度传感器驱动(读取环境温度、支持级联)
- Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)
- Talk about SOC startup (11) kernel initialization
- Suggestions on one-stop development of testing life
- 正在運行的Kubernetes集群想要調整Pod的網段地址
- 通过环境变量将 Pod 信息呈现给容器
- There are ways to improve self-discipline and self-control
- STM32 entry development NEC infrared protocol decoding (ultra low cost wireless transmission scheme)
- Blog moved to Zhihu
- R language uses the quantile function to calculate the quantile of the score value (20%, 40%, 60%, 80%), uses the logical operator to encode the corresponding quantile interval (quantile) into the cla
猜你喜欢

Flet教程之 15 GridView 基础入门(教程含源码)

In my limited software testing experience, a full-time summary of automation testing experience
![Verilog realizes nixie tube display driver [with source code]](/img/ad/be94912bedc738f4b5f97138db7352.png)
Verilog realizes nixie tube display driver [with source code]

There are so many factors that imprison you

Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)

禁锢自己的因素,原来有这么多

Some opinions and code implementation of Siou loss: more powerful learning for bounding box regression zhora gevorgyan

分布式数据库主从配置(MySQL)

Flet教程之 19 VerticalDivider 分隔符组件 基础入门(教程含源码)

Stm32f1 and stm32subeide programming example -max7219 drives 8-bit 7-segment nixie tube (based on SPI)
随机推荐
Qt|多个窗口共有一个提示框类
Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive
Software design - "high cohesion and low coupling"
VIM command mode and input mode switching
TDengine 社区问题双周精选 | 第二期
Briefly introduce closures and some application scenarios
清华姚班程序员,网上征婚被骂?
QT | multiple windows share a prompt box class
sink 消费 到 MySQL, 数据库表里面已经设置了 自增主键, flink 里面,如何 操作?
核舟记(一):当“男妈妈”走进现实,生物科技革命能解放女性吗?
Talk about SOC startup (VI) uboot startup process II
Android interview knowledge points
There are ways to improve self-discipline and self-control
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
Cmu15445 (fall 2019) project 2 - hash table details
正在運行的Kubernetes集群想要調整Pod的網段地址
禁锢自己的因素,原来有这么多
[encapsulation of time format tool functions]
Distributed database master-slave configuration (MySQL)
SwiftUI Swift 内功之 Swift 中使用不透明类型的 5 个技巧