get_standard_image¶
-
imagepypelines_image.
get_standard_image
(img_name)[source]¶ retrieves the numpy array of standard image given a string key
- Parameters
img_name (str) – name of the standard image to retrieve, must be in list_standard_images()
- Returns
image data for the given standard image
- Return type
np.ndarray
- Raises
ValueError – if invalid img_name is provided
Example
>>> import imagepypelines as ip >>> lenna = ip.get_standard_image('lenna')