Fix weird boolean conditions

This commit is contained in:
Philippe Vaucher
2014-03-24 12:41:23 +01:00
parent d24ed44f83
commit c406cc6e0b
5 changed files with 10 additions and 14 deletions

View File

@@ -363,7 +363,7 @@ RecognitionResult FeatureMatcher::recognize( const Mat& queryImg, bool drawOnIma
drawKeypoints( queryImg, queryKeypoints, tmpImg, CV_RGB(185, 0, 0), DrawMatchesFlags::DEFAULT );
drawKeypoints( tmpImg, positiveMatches, *outputImage, CV_RGB(0, 255, 0), DrawMatchesFlags::DEFAULT );
if (result.haswinner == true)
if (result.haswinner)
{
std::ostringstream out;
out << result.winner << " (" << result.confidence << "%)";