未验证 提交 53bfdc31 编写于 作者: O Orest Chura 提交者: GitHub

Merge pull request #17896 from OrestChura:oc/fix_kw_videotests

* - fix numeric overflow due to incorrect type casting
 - remove unnecessary default constructor

* Drop the cast
上级 b698d0a6
......@@ -43,7 +43,7 @@ inline void initTrackingPointsArray(std::vector<cv::Point2f>& points, int width,
points.clear();
GAPI_Assert((nPointsX >= 0) && (nPointsY) >= 0);
points.reserve(static_cast<size_t>(nPointsX * nPointsY));
points.reserve(nPointsX * nPointsY);
for (int x = stepX / 2; x < width; x += stepX)
{
......@@ -80,9 +80,7 @@ struct OptFlowLKTestOutput
struct BuildOpticalFlowPyramidTestParams
{
BuildOpticalFlowPyramidTestParams(): fileName(""), winSize(-1), maxLevel(-1),
withDerivatives(false), pyrBorder(-1),
derivBorder(-1), tryReuseInputImage(false) { }
BuildOpticalFlowPyramidTestParams() = default;
BuildOpticalFlowPyramidTestParams(const std::string& name, int winSz, int maxLvl,
bool withDeriv, int pBorder, int dBorder,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册