New Post

Intelligent Traffic Management Using || AI & Metaheuristics || ~xRay Pixy

Image
Hybrid Artificial Intelligence and Metaheuristics for Smart City TRafci Management Problem Video Chapters: 00:00 Introduction 00:40 Smart Cities 01:14 Traditional Methods for Traffic Management 02:12 Hybrid Approach AI and Metaheuristics 02:47 STEPS for Hybrid  Traffic Management System 08:40 Advantages of Smart Traffic Management System 09:33 Conclusion

how is the LBP |Local Binary Pattern| values calculated? Step-by-Step with Example

 Local Binary Pattern

Introduction to Local Binary Pattern (LBP)

Q. What is Digital Image?

A. Digital images are collections of pixels or numbers ( range from 0 to 255). 

Q. What is Pixel?

A. Pixel is the smallest element of any digital image. Pixel can be categorized as Dark Pixel and Bright Pixel. Dark pixels contain low pixel values and bright pixels contain high pixel values.

Q. Explain Local Binary Pattern (LBP)?

A. Local binary pattern is a popular technique used for image processing. We can use the local binary pattern for face detection and face recognition.

Q. What is LBP Operator?

A. LBP operator is an image operator. We can transform images into arrays using the LBP operator.

Q. How LBP values are computed?

A. LBP works in 3x3 (it contain a 9-pixel value ). Local binary pattern looks at nine pixels at a time. Using each 3x3 window in the digital image, we can extract an LBP code.

Q. How to Obtain LBP operator value? 

A. LBP operator values can be obtained by using the simple formula:

Here, i(n) is the neighbor pixel value and i(c) is the center pixel value.

Local Binary Pattern with Example Step-by-Step


Step-by-Step compute values for each pixel in a 3x3 window.
Compute the value for first pixel at (n=0)


Output: 
Compute the value for first pixel at (n=1)

Output: 


Like that compute values for each neighbor pixel. And in the end, you will get values as: 

Now Convert the binary pattern(11111111) into a Decimal number.

 255 means white color. 
Local Binary Pattern Output Image.

For more details: You can check this video: Local Binary Pattern Example 01 
how is the LBP |Local Binary Pattern| values calculated? Step-by-Step with Example 1🌞 ~xRay Pixy
Local Binary Pattern Example 02 

how is the LBP |Local Binary Pattern| values calculated? Step-by-Step with Example 2🌞 ~xRay Pixy


Comments

Popular Post

PARTICLE SWARM OPTIMIZATION ALGORITHM NUMERICAL EXAMPLE

Cuckoo Search Algorithm for Optimization Problems

Particle Swarm Optimization (PSO)

PSO (Particle Swarm Optimization) Example Step-by-Step

PSO Python Code || Particle Swarm Optimization in Python || ~xRay Pixy

Bat algorithm Explanation Step by Step with example

Grey Wolf Optimization Algorithm

Grey Wolf Optimization Algorithm Numerical Example

Whale Optimization Algorithm Code Implementation || WOA CODE || ~xRay Pixy