Skip to content

Commit bb1dee1

Browse files
committed
Merge pull request #2222 from adilfaqah:patch-1
2 parents 0218a8f + 63c08d0 commit bb1dee1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/reg/samples/reg_shift.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
img1 = cv.imread(sys.argv[1])
88
img1 = img1.astype(np.float32)
99
shift = np.array([5., 5.])
10-
mapTest = cv.reg.MapShift(shift)
10+
mapTest = cv.reg_MapShift(shift)
1111

1212
img2 = mapTest.warp(img1)
1313

14-
mapper = cv.reg.MapperGradShift()
15-
mappPyr = cv.reg.MapperPyramid(mapper)
14+
mapper = cv.reg_MapperGradShift()
15+
mappPyr = cv.reg_MapperPyramid(mapper)
1616

1717
resMap = mappPyr.calculate(img1, img2)
1818
mapShift = cv.reg.MapTypeCaster_toShift(resMap)

0 commit comments

Comments
 (0)