We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf50aed + 7ab3e17 commit 464bed7Copy full SHA for 464bed7
1 file changed
modules/reg/samples/reg_shift.py
@@ -6,13 +6,13 @@
6
7
img1 = cv.imread(sys.argv[1])
8
img1 = img1.astype(np.float32)
9
+
10
shift = np.array([5., 5.])
-mapTest = cv.reg_MapShift(shift)
11
12
+mapTest = cv.reg.MapShift(shift)
13
img2 = mapTest.warp(img1)
-
14
-mapper = cv.reg_MapperGradShift()
15
-mappPyr = cv.reg_MapperPyramid(mapper)
+mapper = cv.reg.MapperGradShift()
+mappPyr = cv.reg.MapperPyramid(mapper)
16
17
resMap = mappPyr.calculate(img1, img2)
18
mapShift = cv.reg.MapTypeCaster_toShift(resMap)
0 commit comments