Example #1
0
def test_load_image_grayscale():
    filename = 'creevey_gray.jpg'
    path = SAMPLE_DATA_DIR / filename
    image = load_image_from_disk(path)

    expected_shape = (34, 25)
    actual_shape = image.shape

    assert actual_shape == expected_shape
Example #2
0
def test_load_image_rgba():
    filename = 'creevey_rgba.png'
    path = SAMPLE_DATA_DIR / filename
    image = load_image_from_disk(path)

    expected_shape = (32, 32, 4)
    actual_shape = image.shape

    assert actual_shape == expected_shape
Example #3
0
def sample_image_square_rgba():
    filename = 'creevey_rgba.png'
    path = SAMPLE_DATA_DIR / filename
    image = load_image_from_disk(path)
    return image
Example #4
0
def sample_image_tall_grayscale():
    filename = 'creevey_gray.jpg'
    path = SAMPLE_DATA_DIR / filename
    image = load_image_from_disk(path)
    return image