hexdropper.read_image
Module Contents
Functions
|
Read the input image into a matrix of pixel values. |
- hexdropper.read_image.read_image(image_path)[source]
Read the input image into a matrix of pixel values.
- Parameters:
image_path (string) – File path to the image to read.
- Returns:
Matrix of RGB values for each pixel, in order BGR.
- Return type:
ndarray(dtype=float, ndim=3)
Examples
>>> read_image('tests/images/test_image.jpg') [[[213 181 8] [213 181 8] ... [213 181 8]]
…
- [[213 181 8]
- [213 181 8]
…
[213 181 8]]]