fix -Wsign-compare warnings
This commit is contained in:
parent
df57d038b8
commit
c120001178
@ -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:
|
|||||||
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++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user