Skip to content

Bug fixes and feature support in stitching_detailed.py#21674

Merged
opencv-pushbot merged 1 commit intoopencv:4.xfrom
jeremyephron:patch-1
Mar 4, 2022
Merged

Bug fixes and feature support in stitching_detailed.py#21674
opencv-pushbot merged 1 commit intoopencv:4.xfrom
jeremyephron:patch-1

Conversation

@jeremyephron
Copy link
Copy Markdown
Contributor

@jeremyephron jeremyephron commented Mar 2, 2022

Critical bugs fixed:

  • seam_finder.find() returns None and overwrites masks_warped
  • indices is only 1-dimensional

Nice-to-have bugs fixed:

  • avoid invalid value in sqrt and subsequent runtime warning
  • avoid printing help string on each run (use argparse builtin behavior)

New features:

  • added graphcut seam finder support

Test Summary:

Tested on Ubuntu 20.04 with python 3.8.10 and opencv-python-contrib 4.5.5.62

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

###  Critical bugs fixed:
- `seam_finder.find()` returns None and overwrites `masks_warped`
- `indices` is only 1-dimensional

### Nice-to-have bugs fixed:
- avoid invalid value in sqrt and subsequent runtime warning
- avoid printing help string on each run (use argparse builtin behavior)

### New features:
- added graphcut seam finder support

### Test Summary:
Tested on Ubuntu 20.04 with python 3.8.10 and opencv-python-contrib 4.5.5.62
@jeremyephron jeremyephron changed the base branch from master to 4.x March 2, 2022 19:06
Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contribution! 👍

BTW, you may want to take a look on this tool evolved from this sample: https://github.com/opencv/opencv/tree/4.x/apps/opencv_stitching_tool

@opencv-pushbot opencv-pushbot merged commit 8fa429c into opencv:4.x Mar 4, 2022
@opencv-pushbot opencv-pushbot mentioned this pull request Apr 23, 2022
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.

5 participants