Reads image into numpy ndarray and splits the path and image filename. This is a wrapper for the OpenCV function imread.
returns img, path, image filename
- filename - image file to be read (possibly including a path)
- debug - None, "print", or "plot". Print = save to file, Plot = print to screen. Default = None
- Reads in file to be processed
- Example use:
from plantcv import plantcv as pcv img, path, img_filename=pcv.readimage("home/user/images/test-image.png")