def fixSeams(img, mesh, border=1): from image_operations import Image, expand mask = mesh if isinstance(mesh, Image) else mapMask(img.size, mesh) img, mask = expand(img, mask, border) return (img, mask) if isinstance(mesh, Image) else img
def fixSeams(img, mesh, border = 1): from image_operations import Image, expand mask = mesh if isinstance(mesh, Image) else mapMask(img.size, mesh) img, mask = expand(img, mask, border) return (img, mask) if isinstance(mesh, Image) else img