added lappyr.py sample

This commit is contained in:
Alexander Mordvintsev
2012-06-10 08:38:25 +00:00
parent 139e790fbf
commit 889df76ea7
2 changed files with 68 additions and 0 deletions

View File

@@ -190,3 +190,7 @@ def mosaic(w, imgs):
imgs = it.chain([img0], imgs)
rows = grouper(w, imgs, pad)
return np.vstack(map(np.hstack, rows))
def getsize(img):
h, w = img.shape[:2]
return w, h