提交 c1200011 编写于 作者: V Vladislav Vinogradov

fix -Wsign-compare warnings

上级 df57d038
...@@ -818,7 +818,7 @@ void AKAZEFeatures::Compute_Main_Orientation(KeyPoint& kpt, const std::vector<TE ...@@ -818,7 +818,7 @@ void AKAZEFeatures::Compute_Main_Orientation(KeyPoint& kpt, const std::vector<TE
ang2 = (ang1 + (float)(CV_PI / 3.0) >(float)(2.0*CV_PI) ? ang1 - (float)(5.0*CV_PI / 3.0) : ang1 + (float)(CV_PI / 3.0)); ang2 = (ang1 + (float)(CV_PI / 3.0) >(float)(2.0*CV_PI) ? ang1 - (float)(5.0*CV_PI / 3.0) : ang1 + (float)(CV_PI / 3.0));
sumX = sumY = 0.f; sumX = sumY = 0.f;
for (size_t k = 0; k < ang_size; ++k) { for (int k = 0; k < ang_size; ++k) {
// Get angle from the x-axis of the sample point // Get angle from the x-axis of the sample point
const float & ang = Ang[k]; const float & ang = Ang[k];
......
...@@ -664,7 +664,7 @@ private: ...@@ -664,7 +664,7 @@ private:
vector<Mat> pages; vector<Mat> pages;
bool res = imreadmulti(folder + "multipage.tif", pages, flags); bool res = imreadmulti(folder + "multipage.tif", pages, flags);
ASSERT_TRUE(res == true); ASSERT_TRUE(res == true);
ASSERT_TRUE(pages.size() == page_count); ASSERT_EQ(static_cast<size_t>(page_count), pages.size());
for (int i = 0; i < page_count; i++) for (int i = 0; i < page_count; i++)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册