Skip to content

Commit

Permalink
Draw over previous image
Browse files Browse the repository at this point in the history
  • Loading branch information
guijemont committed Nov 1, 2011
1 parent 3518f01 commit e6713e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/flow_corrector.py
Expand Up @@ -118,10 +118,13 @@ def _chain(self, pad, buf):
transform = self._perspective_transform_from_flow(flow)

img = img_of_buf(buf)

new_img = self._reference_img.copy()

new_img = cv2.warpPerspective(img, transform,
(img.shape[1], img.shape[0]),
flags=cv2.WARP_INVERSE_MAP) #, borderMode=cv2.BORDER_TRANSPARENT)
dst=new_img,
flags=cv2.WARP_INVERSE_MAP, borderMode=cv2.BORDER_TRANSPARENT)

new_buf = buf_of_img(new_img, bufmodel=buf)
self._reference_img = new_img
Expand Down

0 comments on commit e6713e4

Please sign in to comment.