mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
Merge pull request #3215 from dmitrygribanov:dg/stitching-wave-correction-bugfix
This commit is contained in:
commit
d14d4bc110
@ -629,7 +629,14 @@ void waveCorrect(std::vector<Mat> &rmats, WaveCorrectKind kind)
|
||||
for (size_t i = 0; i < rmats.size(); ++i)
|
||||
img_k += rmats[i].col(2);
|
||||
Mat rg0 = rg1.cross(img_k);
|
||||
rg0 /= norm(rg0);
|
||||
double rg0_norm = norm(rg0);
|
||||
|
||||
if( rg0_norm <= DBL_MIN )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
rg0 /= rg0_norm;
|
||||
|
||||
Mat rg2 = rg0.cross(rg1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user