bin2cell.load_image
- bin2cell.load_image(image_path, gray=False, dtype=<class 'numpy.uint8'>)
Efficiently load an external image and return it as an RGB numpy array.
Input
- image_path
filepath Path to image to be loaded.
- gray
bool, optional (default:False) Whether to turn image to grayscale before returning
- dtype
numpy.dtype, optional (default:numpy.uint8) Data type of the numpy array output.
- image_path