Skip to content
Merged
11 changes: 9 additions & 2 deletions digital_image_processing/test_digital_image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,16 @@ def test_nearest_neighbour(


def test_local_binary_pattern():
file_path = "digital_image_processing/image_data/lena.jpg"
# pull request 10161 before:
# "digital_image_processing/image_data/lena.jpg"
# after: "digital_image_processing/image_data/lena_small.jpg"

# Reading the image and converting it to grayscale.
from os import getenv # Speed up our Continuous Integration tests

file_name = "lena_small.jpg" if getenv("CI") else "lena.jpg"
file_path = f"digital_image_processing/image_data/{file_name}"

# Reading the image and converting it to grayscale
image = imread(file_path, 0)

# Test for get_neighbors_pixel function() return not None
Expand Down