Skip to content

reg: broken python sample #1935

@berak

Description

@berak
  • OpenCV =>3.4.3 / 3.4.4
  • Operating System / Platform => Windows 64 Bit / ubuntu 16
  • Compiler => opencv-contrib-python 3.4.4 / 3.4.3 (from pip)

for unknown reason, sample only runs,
if we use cv.reg_MapShift cv.reg_MapperGradShift and cv.reg_MapperPyramid here:

mapTest = cv.reg.MapShift(shift)
img2 = mapTest.warp(img1)
mapper = cv.reg.MapperGradShift()
mappPyr = cv.reg.MapperPyramid(mapper)

(underscores instead of dots)
(easy to fix, but the underscores look quite weird to me)

it also segfaults, if it used like this:

 mappPyr = cv.reg_MapperPyramid(cv.reg_MapperGradShift()) 

instead of:

 mapper = cv.reg_MapperGradShift() 
 mappPyr = cv.reg_MapperPyramid(mapper) 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions