pysdic.get_lena_image#
- get_lena_image()[source]#
Get the Lena image as a numpy array. This function loads the Lena image from the package resources and returns it as a numpy array that can be used as a texture in visualizations.
Note
This function requires OpenCV (
cv2) to read the image.
- Returns:
The Lena image as a numpy array with shape (474, 474) and dtype uint8.
- Return type:
- Raises:
ImportError – If OpenCV (
cv2) is not installed.FileNotFoundError – If the image cannot be read from the package resources.