1 | initial version |
I found in the doc :
map_proj = cv.reg.MapTypeCaster_toProjec(map_ptr)
and there is no value return by normalize. normalise do work in place :
import cv2 as cv
img1 = cv.imread("g:/lib/opencv/samples/data/lena.jpg")
img2 = cv.imread("g:/lib/opencv/samples/data/lena.jpg")
mapper = cv.reg_MapperGradProj()
mapp_pyr = cv.reg_MapperPyramid(mapper)
map_ptr = mapp_pyr.calculate(img, img)
map_proj = cv.reg.MapTypeCaster_toProjec(map_ptr)
map_proj.normalize()
dest = map_proj.inverseWarp(img2)
2 | No.2 Revision |
I found in the doc :
map_proj = cv.reg.MapTypeCaster_toProjec(map_ptr)
and there is no value return by normalize. normalise do does work in place :
import cv2 as cv
img1 = cv.imread("g:/lib/opencv/samples/data/lena.jpg")
img2 = cv.imread("g:/lib/opencv/samples/data/lena.jpg")
mapper = cv.reg_MapperGradProj()
mapp_pyr = cv.reg_MapperPyramid(mapper)
map_ptr = mapp_pyr.calculate(img, img)
map_proj = cv.reg.MapTypeCaster_toProjec(map_ptr)
map_proj.normalize()
dest = map_proj.inverseWarp(img2)