work on feature_homography.py: multiple targets

This commit is contained in:
Alexander Mordvintesv
2012-08-01 21:41:03 +03:00
parent 989631c5cc
commit ffa8c32348
2 changed files with 40 additions and 29 deletions

View File

@@ -6,6 +6,12 @@ import itertools as it
image_extensions = ['.bmp', '.jpg', '.jpeg', '.png', '.tif', '.tiff', '.pbm', '.pgm', '.ppm']
class Bunch(object):
def __init__(self, **kw):
self.__dict__.update(kw)
def __str__(self):
return str(self.__dict__)
def splitfn(fn):
path, fn = os.path.split(fn)
name, ext = os.path.splitext(fn)