def binarize(self): if self.bin: return if not self.std: self.standardize() i = pyf.fp_img_binarize(self.img) if i == None: raise "Binarize failed" return Image(img_ptr = i, bin = True)
def binarize(self): """ Return the image converted to a black/white binary image of the print. The returned Image is a copy of the original. The old image remains un-binarized. This will standardize() the image, if it isn't already so. """ if self._bin: return if not self._std: self.standardize() i = pyf.fp_img_binarize(self._img) if i == None: raise "Binarize failed" i = Image(img_ptr=i, bin=True) i._minutiae = self._minutiae return i
def binarize(self): """ Return the image converted to a black/white binary image of the print. The returned Image is a copy of the original. The old image remains un-binarized. This will standardize() the image, if it isn't already so. """ if self._bin: return if not self._std: self.standardize() i = pyf.fp_img_binarize(self._img) if i == None: raise "Binarize failed" i = Image(img_ptr = i, bin = True) i._minutiae = self._minutiae return i