protected void addCircle( final ImagePlus imp, final int centerX, final int centerY, final double radius ) { Overlay o = imp.getOverlay(); if ( o == null ) { o = new Overlay(); imp.setOverlay( o ); } final OvalRoi or = new OvalRoi( Math.round( centerX - radius ), Math.round( centerY - radius ), Math.round( radius * 2 ), Math.round( radius * 2 ) ); or.setStrokeColor( select ); or.setStrokeWidth( selectWidth ); o.add( or ); imp.updateAndDraw(); }
or.setStrokeWidth( hightlightWidth ); or.setStrokeWidth( standardWidth );
or.setStrokeWidth( hightlightWidth ); or.setStrokeWidth( standardWidth );