From e83cbc12e95241796feb0e1abecbc9f4b063dd2b Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Fri, 1 Sep 2017 10:38:19 +0200 Subject: [PATCH] Remove useless mask(); Update comments --- bob/bio/vein/database/fv3d.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/bob/bio/vein/database/fv3d.py b/bob/bio/vein/database/fv3d.py index 47dfbdd..04ff2a4 100644 --- a/bob/bio/vein/database/fv3d.py +++ b/bob/bio/vein/database/fv3d.py @@ -13,7 +13,7 @@ from ..preprocessor.utils import poly_to_mask class File(BioFile): """ - Implements extra properties of vein files for the Vera Fingervein database + Implements extra properties of vein files for the 3D Fingervein database Parameters: @@ -29,17 +29,11 @@ class File(BioFile): self.__f = f - def mask(self, shape): - """Returns the binary mask from the ROI annotations available""" - - return poly_to_mask(shape, self.__f.roi()) - - def load(self, *args, **kwargs): """(Overrides base method) Loads both image and mask""" image = super(File, self).load(*args, **kwargs) - image = numpy.rot90(image, 3) + image = numpy.rot90(image, -1) if not self.__f.has_roi(): return image @@ -56,7 +50,7 @@ class File(BioFile): class Database(BioDatabase): """ - Implements verification API for querying Vera Fingervein database. + Implements verification API for querying the 3D Fingervein database. """ def __init__(self, **kwargs): -- GitLab