1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 11:21:39 +08:00

The function pow(2,i) has been replaced by pow(2.0,i)

modified:   modules/line_descriptor/perf/perf_matching.cpp
	modified:   modules/line_descriptor/test/test_matcher_regression.cpp
This commit is contained in:
Prof. Dr. Rudolf Haussmann
2016-02-20 14:23:41 +01:00
parent 280af82642
commit 75a1722564
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ uchar invertSingleBits( uchar dividend_char, int numBits )
/* reconvert to decimal */
uchar result = 0;
for ( int i = (int) bin_vector.size() - 1; i >= 0; i-- )
result += (uchar) ( bin_vector[i] * pow( 2, i ) );
result += (uchar) ( bin_vector[i] * pow( 2.0, i ) );
return result;
}

View File

@@ -123,7 +123,7 @@ uchar CV_BinaryDescriptorMatcherTest::invertSingleBits( uchar dividend_char, int
/* reconvert to decimal */
uchar result = 0;
for ( int i = (int) bin_vector.size() - 1; i >= 0; i-- )
result += (uchar) ( bin_vector[i] * pow( 2, i ) );
result += (uchar) ( bin_vector[i] * pow( 2.0, i ) );
return result;
}