Skip to content

reg: fix broken Python sample - use dot notation and fix segfault#4105

Merged
asmorkalov merged 1 commit into
opencv:4.xfrom
Nikhil-jaiswal007:fix/reg-python-sample
May 7, 2026
Merged

reg: fix broken Python sample - use dot notation and fix segfault#4105
asmorkalov merged 1 commit into
opencv:4.xfrom
Nikhil-jaiswal007:fix/reg-python-sample

Conversation

@Nikhil-jaiswal007

Copy link
Copy Markdown
Contributor

Fixes #1935

Changes made:

  • Replaced underscore-style API calls (cv.reg_MapShift) with correct
    dot notation (cv.reg.MapShift)
  • Replaced cv.reg_MapperGradShift with cv.reg.MapperGradShift
  • Replaced cv.reg_MapperPyramid with cv.reg.MapperPyramid
  • Stored mapper in a separate variable before passing to MapperPyramid
    to prevent segfault

Tested on: OpenCV 3.4.4 / Python

@Nikhil-jaiswal007

Copy link
Copy Markdown
Contributor Author

Hi team, the PR is ready for review! I noticed the Windows 10 x64 build failed on videoio_ffmpeg.open_with_format_cv8uc3. Since this PR only modifies the Python sample in the reg module, this appears to be an unrelated flaky test/upstream issue. Let me know if you need me to do anything else on my end.

@asmorkalov asmorkalov self-assigned this May 7, 2026
@asmorkalov asmorkalov merged commit 464bed7 into opencv:4.x May 7, 2026
11 of 13 checks passed
@asmorkalov asmorkalov mentioned this pull request May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reg: broken python sample

2 participants