/** * Returns the top line in the accumulator space. * The end points of the line will have x coordinates at -2000 and 2000. * * @return The strongest line in the accumulator space */ public Line2d getBestLine() { return getBestLine( accum, 0 ); }
/** * Returns the top line in the accumulator space. * The end points of the line will have x coordinates at -2000 and 2000. * * @return The strongest line in the accumulator space */ public Line2d getBestLine() { return getBestLine( accum, 0 ); }
/** * {@inheritDoc} * @see java.util.Iterator#next() */ @Override public Line2d next() { iteratorCurrentPix = iteratorAccum.maxPixel(); Line2d l = getBestLine( iteratorAccum, 0 ); iteratorAccum.setPixel( iteratorCurrentPix.x, iteratorCurrentPix.y, 0f ); return l; }
/** * {@inheritDoc} * @see java.util.Iterator#next() */ @Override public Line2d next() { iteratorCurrentPix = iteratorAccum.maxPixel(); Line2d l = getBestLine( iteratorAccum, 0 ); iteratorAccum.setPixel( iteratorCurrentPix.x, iteratorCurrentPix.y, 0f ); return l; }
int xt = (int)(maxTheta / (360d/getNumberOfSegments())); FImage f = accum.extractROI( mt, 0, xt-mt, accum.getHeight() ); return getBestLine( f, mt ); int xt = (int)(maxTheta / (360d/getNumberOfSegments())); FImage a = accum.shiftRight( -mt ).extractROI(0,0,(xt-mt),accum.getHeight()); return getBestLine( a, mt );
int xt = (int)(maxTheta / (360d/getNumberOfSegments())); FImage f = accum.extractROI( mt, 0, xt-mt, accum.getHeight() ); return getBestLine( f, mt ); int xt = (int)(maxTheta / (360d/getNumberOfSegments())); FImage a = accum.shiftRight( -mt ).extractROI(0,0,(xt-mt),accum.getHeight()); return getBestLine( a, mt );