digital_image_processing.filters.local_binary_pattern

Attributes

image

Functions

get_neighbors_pixel(→ int)

Comparing local neighborhood pixel value with threshold value of centre pixel.

local_binary_value(→ int)

It takes an image, an x and y coordinate, and returns the

Module Contents

digital_image_processing.filters.local_binary_pattern.get_neighbors_pixel(image: numpy.ndarray, x_coordinate: int, y_coordinate: int, center: int) int

Comparing local neighborhood pixel value with threshold value of centre pixel. Exception is required when neighborhood value of a center pixel value is null. i.e. values present at boundaries.

Parameters:
  • image – The image we’re working with

  • x_coordinate – x-coordinate of the pixel

  • y_coordinate – The y coordinate of the pixel

  • center – center pixel value

Returns:

The value of the pixel is being returned.

digital_image_processing.filters.local_binary_pattern.local_binary_value(image: numpy.ndarray, x_coordinate: int, y_coordinate: int) int

It takes an image, an x and y coordinate, and returns the decimal value of the local binary patternof the pixel at that coordinate

Parameters:
  • image – the image to be processed

  • x_coordinate – x coordinate of the pixel

  • y_coordinate – the y coordinate of the pixel

Returns:

The decimal value of the binary value of the pixels

around the center pixel.

digital_image_processing.filters.local_binary_pattern.image