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_pathfilepath

Path to image to be loaded.

graybool, optional (default: False)

Whether to turn image to grayscale before returning

dtypenumpy.dtype, optional (default: numpy.uint8)

Data type of the numpy array output.