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(); }
protected OvalRoi mark(int distance, Color color) { float intensity = image.get(slice, distance); int x = image.distance2x(distance); int y = image.intensity2y(intensity); OvalRoi roi = new OvalRoi(x - 10, y - 10, 20, 20); if (color != null) roi.setStrokeColor(color); return roi; }
protected static void drawProjectedInterestPoints( final ImagePlus imp, final List< InterestPoint > ipList, final int projectionDim ) { final int xDim = getXDim( projectionDim ); final int yDim = getYDim( projectionDim ); // extract peaks to show Overlay o = imp.getOverlay(); if ( o == null ) { o = new Overlay(); imp.setOverlay( o ); } o.clear(); for ( final InterestPoint ip : ipList ) { final double x = ip.getL()[ xDim ]; final double y = ip.getL()[ yDim ]; final OvalRoi or = new OvalRoi( Math.round( x - size ), Math.round( y - size ), Math.round( size * 2 ), Math.round( size * 2 ) ); or.setStrokeColor( Color.green ); o.add( or ); } imp.updateAndDraw(); }
or.setStrokeColor( highlight ); or.setStrokeWidth( hightlightWidth ); or.setStrokeColor( standard ); or.setStrokeWidth( standardWidth );
or.setStrokeColor( highlight ); or.setStrokeWidth( hightlightWidth ); or.setStrokeColor( standard ); or.setStrokeWidth( standardWidth );
or.setStrokeColor( Color.green ); else if ( peak.isMin ) or.setStrokeColor( Color.red );
or.setStrokeColor( Color.green ); else if ( peak.isMin() ) or.setStrokeColor( Color.red );