Loading modules/reg/samples/reg_shift.py +3 −3 Original line number Diff line number Diff line Loading @@ -7,12 +7,12 @@ import sys img1 = cv.imread(sys.argv[1]) img1 = img1.astype(np.float32) shift = np.array([5., 5.]) mapTest = cv.reg.MapShift(shift) mapTest = cv.reg_MapShift(shift) img2 = mapTest.warp(img1) mapper = cv.reg.MapperGradShift() mappPyr = cv.reg.MapperPyramid(mapper) mapper = cv.reg_MapperGradShift() mappPyr = cv.reg_MapperPyramid(mapper) resMap = mappPyr.calculate(img1, img2) mapShift = cv.reg.MapTypeCaster_toShift(resMap) Loading Loading
modules/reg/samples/reg_shift.py +3 −3 Original line number Diff line number Diff line Loading @@ -7,12 +7,12 @@ import sys img1 = cv.imread(sys.argv[1]) img1 = img1.astype(np.float32) shift = np.array([5., 5.]) mapTest = cv.reg.MapShift(shift) mapTest = cv.reg_MapShift(shift) img2 = mapTest.warp(img1) mapper = cv.reg.MapperGradShift() mappPyr = cv.reg.MapperPyramid(mapper) mapper = cv.reg_MapperGradShift() mappPyr = cv.reg_MapperPyramid(mapper) resMap = mappPyr.calculate(img1, img2) mapShift = cv.reg.MapTypeCaster_toShift(resMap) Loading