/** * Returns the top n lines from the accumulator space. * The end points of the lines will have x coordinates at -2000 and 2000. * * @param n The number of lines to return * @return A list of lines */ public List<Line2d> getBestLines( int n ) { return getBestLines( n, accum, 0 ); }
/** * Returns the top n lines from the accumulator space. * The end points of the lines will have x coordinates at -2000 and 2000. * * @param n The number of lines to return * @return A list of lines */ public List<Line2d> getBestLines( int n ) { return getBestLines( n, accum, 0 ); }
chessboard.process(new CannyEdgeDetector()).analyseWith(hlines); final List<Line2d> lines = hlines.getBestLines(50); final List<Point2d> intersections = new ArrayList<Point2d>(); for (final Line2d inner : lines) {
int xt = (int)(maxTheta / (360d/getNumberOfSegments())); FImage f = accum.extractROI( mt, 0, xt-mt, accum.getHeight() ); return getBestLines( n, f, mt ); int xt = (int)(maxTheta / (360d/getNumberOfSegments())); FImage a = accum.shiftRight( -mt ).extractROI(0,0,(xt-mt),accum.getHeight()); return getBestLines( n, a, mt );
int xt = (int)(maxTheta / (360d/getNumberOfSegments())); FImage f = accum.extractROI( mt, 0, xt-mt, accum.getHeight() ); return getBestLines( n, f, mt ); int xt = (int)(maxTheta / (360d/getNumberOfSegments())); FImage a = accum.shiftRight( -mt ).extractROI(0,0,(xt-mt),accum.getHeight()); return getBestLines( n, a, mt );
this.debugLines(edgeImage, Matrix.identity(3, 3), "Detection of Horizontal Lines", hl.getBestLines(2)); hl.getBestLines(2, -shearAngleRange, shearAngleRange));
this.debugLines(edgeImage, Matrix.identity(3, 3), "Detection of Horizontal Lines", hl.getBestLines(2)); hl.getBestLines(2, -shearAngleRange, shearAngleRange));