fixed parsing of CC in gpu module
This commit is contained in:
		@@ -145,16 +145,17 @@ namespace
 | 
			
		||||
    template <typename Comparer>
 | 
			
		||||
    bool compare(const std::string& str, int x, Comparer cmp)
 | 
			
		||||
    {
 | 
			
		||||
        if (str.find_first_not_of(" ") == string::npos)
 | 
			
		||||
            return false;
 | 
			
		||||
 | 
			
		||||
        std::stringstream stream(str);
 | 
			
		||||
 | 
			
		||||
        int val;
 | 
			
		||||
        stream >> val;
 | 
			
		||||
 | 
			
		||||
        while (!stream.eof() && !stream.fail())
 | 
			
		||||
        while (!stream.eof())
 | 
			
		||||
        {
 | 
			
		||||
            stream >> val;
 | 
			
		||||
            if (cmp(val, x))
 | 
			
		||||
                return true;
 | 
			
		||||
            stream >> val;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return false;
 | 
			
		||||
 
 | 
			
		||||
@@ -918,7 +918,7 @@ struct CV_GpuCountNonZeroTest: CvTest
 | 
			
		||||
 | 
			
		||||
        if (n != n_gold)
 | 
			
		||||
        {
 | 
			
		||||
            ts->printf(CvTS::CONSOLE, "%d %d %d %d %d\n", n, n_gold, depth, cols, rows);
 | 
			
		||||
            ts->printf(CvTS::LOG, "%d %d %d %d %d\n", n, n_gold, depth, cols, rows);
 | 
			
		||||
            n_gold = cv::countNonZero(src);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user