当前位置:网站首页>[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
边栏推荐
- The database synchronization tool dbsync adds support for mongodb and es
- Talk about SOC startup (x) kernel startup pilot knowledge
- 对比学习之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
- 简单介绍一下闭包及它的一些应用场景
- R language uses image of magick package_ Mosaic functions and images_ The flatten function stacks multiple pictures together to form a stack layers on top of each other
- In SQL, I want to set foreign keys. Why is this problem
- SwiftUI Swift 内功之如何在 Swift 中进行自动三角函数计算
- SwiftUI 教程之如何在 2 秒内实现自动滚动功能
- There are ways to improve self-discipline and self-control
- MySQL安装常见报错处理大全
猜你喜欢
Learning notes | data Xiaobai uses dataease to make a large data screen
【神经网络】卷积神经网络CNN【含Matlab源码 1932期】
STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于SPI)
Complete collection of common error handling in MySQL installation
科普达人丨一文弄懂什么是云计算?
In my limited software testing experience, a full-time summary of automation testing experience
正在运行的Kubernetes集群想要调整Pod的网段地址
聊聊SOC启动(十一) 内核初始化
Flet教程之 14 ListTile 基础入门(教程含源码)
Leetcode - interview question 17.24 maximum submatrix
随机推荐
Swiftui swift internal skill: five skills of using opaque type in swift
'module 'object is not callable error
正在运行的Kubernetes集群想要调整Pod的网段地址
本地navicat连接liunx下的oracle报权限不足
Web端自动化测试失败的原因
Use references
Two week selection of tdengine community issues | phase II
如何在博客中添加Aplayer音乐播放器
The Oracle message permission under the local Navicat connection liunx is insufficient
Solve the problem that vscode can only open two tabs
学习笔记|数据小白使用DataEase制作数据大屏
分布式数据库主从配置(MySQL)
Reasons for the failure of web side automation test
Android 面试知识点
Technology sharing | packet capturing analysis TCP protocol
QT implements the delete method of the container
VIM command mode and input mode switching
【神经网络】卷积神经网络CNN【含Matlab源码 1932期】
STM32入门开发 采用IIC硬件时序读写AT24C08(EEPROM)
STM32入门开发 NEC红外线协议解码(超低成本无线传输方案)