Skip to Content
Mastering Computer Vision with TensorFlow 2.x
book

Mastering Computer Vision with TensorFlow 2.x

by Krishnendu Kar
May 2020
Beginner to intermediate
430 pages
10h 39m
English
Packt Publishing
Content preview from Mastering Computer Vision with TensorFlow 2.x

Generating an LBP pattern

The principal steps for LBP pattern generation are as follows:

  1. Convert RGB image A into grayscale image G.
  2. For each pixel with intensity Ic (x,y) in image G, choose P neighboring points (p0, p1 .. pP-1) with corresponding intensity (I0, I1 .. IP-1) at radius R. The radius is defined in pixel units as the difference between two pixels. The pixel and the neighboring points represent a sliding window, W, of the image, G. For radius R = 1, P becomes 8, as shown here.

The sliding window, W0, is represented as an array with . Here, points 0 to P-1 represent the intensity of P points around the center pixel, c:

The relationship ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres

Publisher Resources

ISBN: 9781838827069Supplemental Content