@@ -113,7 +113,7 @@ static Mat normalizePoints(int npoints, Point2f *points)
113113 T (0 ,0 ) = T (1 ,1 ) = s;
114114 T (0 ,2 ) = -cx*s;
115115 T (1 ,2 ) = -cy*s;
116- return std::move (T) ;
116+ return T ;
117117}
118118
119119
@@ -138,7 +138,7 @@ static Mat estimateGlobMotionLeastSquaresTranslation(
138138 *rmse = std::sqrt (*rmse / npoints);
139139 }
140140
141- return std::move (M) ;
141+ return M ;
142142}
143143
144144
@@ -219,7 +219,7 @@ static Mat estimateGlobMotionLeastSquaresRotation(
219219 *rmse = std::sqrt (*rmse / npoints);
220220 }
221221
222- return std::move (M) ;
222+ return M ;
223223}
224224
225225static Mat estimateGlobMotionLeastSquaresRigid (
@@ -273,7 +273,7 @@ static Mat estimateGlobMotionLeastSquaresRigid(
273273 *rmse = std::sqrt (*rmse / npoints);
274274 }
275275
276- return std::move (M) ;
276+ return M ;
277277}
278278
279279
@@ -484,7 +484,7 @@ Mat estimateGlobalMotionRansac(
484484 if (ninliers)
485485 *ninliers = ninliersMax;
486486
487- return std::move ( bestM) ;
487+ return bestM;
488488}
489489
490490
@@ -527,7 +527,7 @@ Mat MotionEstimatorRansacL2::estimate(InputArray points0, InputArray points1, bo
527527 if (ok) *ok = false ;
528528 }
529529
530- return std::move (M) ;
530+ return M ;
531531}
532532
533533
@@ -681,7 +681,7 @@ Mat FromFileMotionReader::estimate(const Mat &/*frame0*/, const Mat &/*frame1*/,
681681 >> M (1 ,0 ) >> M (1 ,1 ) >> M (1 ,2 )
682682 >> M (2 ,0 ) >> M (2 ,1 ) >> M (2 ,2 ) >> ok_;
683683 if (ok) *ok = ok_;
684- return std::move (M) ;
684+ return M ;
685685}
686686
687687
@@ -701,7 +701,7 @@ Mat ToFileMotionWriter::estimate(const Mat &frame0, const Mat &frame1, bool *ok)
701701 << M (1 ,0 ) << " " << M (1 ,1 ) << " " << M (1 ,2 ) << " "
702702 << M (2 ,0 ) << " " << M (2 ,1 ) << " " << M (2 ,2 ) << " " << ok_ << std::endl;
703703 if (ok) *ok = ok_;
704- return std::move (M) ;
704+ return M ;
705705}
706706
707707
0 commit comments