def img_as_bool(image, force_copy=False):
 return convert(image, np.bool_, force_copy)

def img_as_bool ( image , force_copy = False ) : return convert ( image , np . bool_ , force_copy )
convert an image to boolean format .