Subversion Repositories seema-scanner

Rev

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

Rev 127 Rev 128
Line 191... Line 191...
191
        float hI = h.at<float>(0, i);
191
        float hI = h.at<float>(0, i);
192
 
192
 
193
        int codeI = codeScanLine.at<int>(0, i);
193
        int codeI = codeScanLine.at<int>(0, i);
194
        //int codeRight = codeScanLine.at<int>(0, i+1);
194
        //int codeRight = codeScanLine.at<int>(0, i+1);
195
 
195
 
196
        if((codeI != -1) && (fI > 1) && (gI >= 0.0) && (gRight <= 0.0) && (gRight < gI) && (hI < -2.0)){
196
        if((codeI != -1) && (fI > 10) && (gI >= 0.0) && (gRight <= 0.0) && (gRight < gI) && (hI < -1.0)){
197
            float delta = gI/(gI - gRight);
197
            float delta = gI/(gI - gRight);
198
            lineCenters.push_back(cv::Vec2f(i + delta, codeI));
198
            lineCenters.push_back(cv::Vec2f(i + delta, codeI));
199
        }
199
        }
200
 
200
 
201
    }
201
    }