Merge pull request #18646 from qchateau:wave-auto

* stitching: add WAVE_CORRECT_AUTO

* stitching: use CV_EXPORTS
This commit is contained in:
Quentin Chateau
2020-10-25 16:58:27 +01:00
committed by GitHub
parent 72dfd4846e
commit 36598677cf
4 changed files with 107 additions and 1 deletions
@@ -328,9 +328,19 @@ private:
enum WaveCorrectKind
{
WAVE_CORRECT_HORIZ,
WAVE_CORRECT_VERT
WAVE_CORRECT_VERT,
WAVE_CORRECT_AUTO
};
/** @brief Tries to detect the wave correction kind depending
on whether a panorama spans horizontally or vertically
@param rmats Camera rotation matrices.
@return The correction kind to use for this panorama
*/
CV_EXPORTS
WaveCorrectKind autoDetectWaveCorrectKind(const std::vector<Mat> &rmats);
/** @brief Tries to make panorama more horizontal (or vertical).
@param rmats Camera rotation matrices.