comparison python/cvutils.py @ 628:977407c9f815

corrected bugs in loading interactions (index shifted) and added functionalities to play/plot interactions
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 16 Feb 2015 11:58:51 +0100
parents 9202628a4130
children 3058e00887bc
comparison
equal deleted inserted replaced
627:82e9f78a4714 628:977407c9f815
238 from sys import maxint 238 from sys import maxint
239 lastFrameNum = maxint 239 lastFrameNum = maxint
240 else: 240 else:
241 lastFrameNum = lastFrameNumArg 241 lastFrameNum = lastFrameNumArg
242 nZerosFilename = int(ceil(log10(lastFrameNum))) 242 nZerosFilename = int(ceil(log10(lastFrameNum)))
243 while ret and not quitKey(key) and frameNum < lastFrameNum: 243 while ret and not quitKey(key) and frameNum <= lastFrameNum:
244 ret, img = capture.read() 244 ret, img = capture.read()
245 if ret: 245 if ret:
246 if undistort: 246 if undistort:
247 img = cv2.remap(img, map1, map2, interpolation=cv2.INTER_LINEAR) 247 img = cv2.remap(img, map1, map2, interpolation=cv2.INTER_LINEAR)
248 if printFrames: 248 if printFrames: