Read Image

Reads image into numpy ndarray and splits the path and image filename. This is a wrapper for the OpenCV function imread.

readimage(filename, debug=None)

returns img, path, image filename

from plantcv import plantcv as pcv      
img, path, img_filename=pcv.readimage("home/user/images/test-image.png")