当前位置:网站首页>[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
边栏推荐
- LeetCode - 面试题17.24 最大子矩阵
- Blog moved to Zhihu
- 普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
- 【神经网络】卷积神经网络CNN【含Matlab源码 1932期】
- 聊聊SOC启动(七) uboot启动流程三
- Briefly introduce closures and some application scenarios
- [Yugong series] go teaching course 005 variables in July 2022
- 简单介绍一下闭包及它的一些应用场景
- There are ways to improve self-discipline and self-control
- Activity lifecycle
猜你喜欢
Learning notes | data Xiaobai uses dataease to make a large data screen
Talk about SOC startup (x) kernel startup pilot knowledge
请查收.NET MAUI 的最新学习资源
总结了200道经典的机器学习面试题(附参考答案)
一度辍学的数学差生,获得今年菲尔兹奖
核舟记(一):当“男妈妈”走进现实,生物科技革命能解放女性吗?
【最短路】Acwing1128信使:floyd最短路
Flet教程之 14 ListTile 基础入门(教程含源码)
Verilog design responder [with source code]
Onedns helps college industry network security
随机推荐
Flet教程之 14 ListTile 基础入门(教程含源码)
Flet教程之 17 Card卡片组件 基础入门(教程含源码)
相机标定(2): 单目相机标定总结
分布式数据库主从配置(MySQL)
基于华为云IOT设计智能称重系统(STM32)
Talk about SOC startup (VII) uboot startup process III
Flet教程之 15 GridView 基础入门(教程含源码)
Onedns helps college industry network security
How to add aplayer music player in blog
Swiftui tutorial how to realize automatic scrolling function in 2 seconds
简单介绍一下闭包及它的一些应用场景
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
STM32入门开发 采用IIC硬件时序读写AT24C08(EEPROM)
竟然有一半的人不知道 for 与 foreach 的区别???
sink 消费 到 MySQL, 数据库表里面已经设置了 自增主键, flink 里面,如何 操作?
Vuthink proper installation process
一起探索云服务之云数据库
科普达人丨一文弄懂什么是云计算?
MIF file format record
Drive HC based on de2115 development board_ SR04 ultrasonic ranging module [source code attached]