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).

plantcv.output_mask(img,mask, filename,outdir=None, mask_only=False)

returns imgpath, maskpath, analysis_images

plantcv.output_mask(img,mask, filename,outdir=None, mask_only=True)

returns maskpath, analysis_images


from plantcv import plantcv as pcv      

# Set global debug behavior to None (default), "print" (to file), or "plot" (Jupyter Notebooks or X11)
pcv.params.debug = "print"

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