Subversion Repositories seema-scanner

Rev

Rev 69 | Rev 78 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 69 Rev 70
Line 91... Line 91...
91
 
91
 
92
    return 1 << exponent;
92
    return 1 << exponent;
93
}
93
}
94
 
94
 
95
// Algorithm
95
// Algorithm
96
AlgorithmGrayCode::AlgorithmGrayCode(unsigned int _screenCols, unsigned int _screenRows, CodingDir _dir) : Algorithm(_screenCols, _screenRows, _dir){
96
AlgorithmGrayCode::AlgorithmGrayCode(unsigned int _screenCols, unsigned int _screenRows) : Algorithm(_screenCols, _screenRows){
97
 
97
 
98
    // on/off patterns
-
 
99
    Nbits = ceilf(log2f((float)screenCols));
98
    Nbits = ceilf(log2f((float)screenCols));
100
    N = 2 + Nbits*2;
99
    N = 2 + Nbits*2;
101
 
100
 
102
    // all on pattern
101
    // all on pattern
103
    cv::Mat allOn(1, screenCols, CV_8UC3, cv::Scalar::all(255));
102
    cv::Mat allOn(1, screenCols, CV_8UC3, cv::Scalar::all(255));