1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Fix triangulatePoints with 2-channel arrays.

This commit is contained in:
Vincent Rabaud
2026-04-20 00:05:58 +02:00
parent c244bc3279
commit 7d3a764ba5
2 changed files with 37 additions and 13 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ void triangulatePoints( InputArray _P1, InputArray _P2,
{
npoints1 = points1.rows + points1.cols - 1;
ystep1 = 1;
pstep1 = points1.rows == 1 ? 2 : (int)(points1.step/points1.elemSize());
pstep1 = 2;
}
else
{
@@ -84,7 +84,7 @@ void triangulatePoints( InputArray _P1, InputArray _P2,
{
npoints2 = points2.rows + points2.cols - 1;
ystep2 = 1;
pstep2 = points2.rows == 1 ? 2 : (int)(points2.step/points2.elemSize());
pstep2 = 2;
}
else
{