Output Mask and Original Image

Write image and mask with the same name to the path specified (creates two folders within the path if they do not exist).

output_mask(device,img,mask, filename,outdir=None, mask_only=False,debug=None)

returns device, imgpath, maskpath, analysis_images

output_mask(device,img,mask, filename,outdir=None, mask_only=True,debug=None)

returns device, maskpath, analysis_images


from plantcv import plantcv as pcv      

device, imgpath,maskpath=pcv.output_mask(device, img, mask, 'test.png', '/home/user/images', mask_only=True, debug='print')