int[][] wZeroes = zeroesFind.push(this.imageEdge);
Vector v = getPointsFromZeroes(wZeroes, true);
if (v.size() < 5) {
return false;
}
LinefitHough fit =
new LinefitHough(0, this.imageEdge.getWidth(), -76, 76, 100);
fit.push(v);
if (fit.getCount() < 5) {
return false;
}
this.cYLeft = fit.getY();
this.wSlopeLeft = fit.getSlope();
v = getPointsFromZeroes(wZeroes, false);
if (v.size() < 5) {
return false;
}
fit.push(v);
if (fit.getCount() < 5) {
return false;
}
this.cYRight = fit.getY();
this.wSlopeRight = fit.getSlope();
{
Debug debug = new Debug();
Gray8Rgb g2r = new Gray8Rgb();
g2r.push(this.imageEdge);
debug.toFile((RgbImage) g2r.getFront(), "edges.png"); //$NON-NLS-1$