Skip to content

stitching: add WAVE_CORRECT_AUTO#18646

Merged
alalek merged 2 commits intoopencv:masterfrom
qchateau:wave-auto
Oct 25, 2020
Merged

stitching: add WAVE_CORRECT_AUTO#18646
alalek merged 2 commits intoopencv:masterfrom
qchateau:wave-auto

Conversation

@qchateau
Copy link
Copy Markdown
Contributor

@qchateau qchateau commented Oct 22, 2020

Content

This PR adds a new wave correction kind: WAVE_CORRECT_AUTO. It will detect the direction (vertical or horizontal) in which the panorama spans, and use that direction for the wave correction algorithm. This enables the usage of wave correction in a generic way.

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 other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to 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

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!

@param rmats Camera rotation matrices.
@return The correction kind to use for this panorama
*/
WaveCorrectKind CV_EXPORTS_W autoDetectWaveCorrectKind(const std::vector<Mat> &rmats);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

CV_EXPORTS_W

Do we need wrapping this API into Python bindings?
If no, please use just CV_EXPORTS (preferable on a separate line).

CV_EXPORTS
WaveCorrectKind autoDetectWaveCorrectKind(const std::vector<Mat> &rmats);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done, no need to wrap this

@alalek alalek merged commit 3659867 into opencv:master Oct 25, 2020
@alalek alalek mentioned this pull request Nov 27, 2020
@qchateau qchateau deleted the wave-auto branch December 7, 2020 09:04
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
* stitching: add WAVE_CORRECT_AUTO

* stitching: use CV_EXPORTS
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.

2 participants