Commit d1265a9d authored by biagio montesano's avatar biagio montesano

Converted KeyLine from class to struct

parent 421b093f
...@@ -58,7 +58,7 @@ namespace cv ...@@ -58,7 +58,7 @@ namespace cv
CV_EXPORTS bool initModule_line_descriptor(); CV_EXPORTS bool initModule_line_descriptor();
class CV_EXPORTS_W KeyLine struct CV_EXPORTS_W_SIMPLE KeyLine
{ {
public: public:
/* orientation of the line */ /* orientation of the line */
......
...@@ -105,7 +105,7 @@ void BinaryDescriptorMatcher::checkKDistances( UINT32 * numres, int k, std::vect ...@@ -105,7 +105,7 @@ void BinaryDescriptorMatcher::checkKDistances( UINT32 * numres, int k, std::vect
{ {
if( ( * ( numres_tmp + j ) ) > 0 ) if( ( * ( numres_tmp + j ) ) > 0 )
{ {
for ( int i = 0; i < ( * ( numres_tmp + j ) ) && k_to_found > 0; i++ ) for ( int i = 0; i < (int)( * ( numres_tmp + j ) ) && k_to_found > 0; i++ )
{ {
k_distances.push_back( j ); k_distances.push_back( j );
k_to_found--; k_to_found--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment