/** * {@inheritDoc} * <p> * If there is no {@link ImagePlus} associated with the wrapped * {@link PointRoi}, then an {@code UnsupportedOperationException} will always * be thrown. Otherwise, the point will be removed if it matches any of the * points in the collection. * </p> */ @Override public void removePoint(final RealLocalizable point) { if (points.getImage() != null) { // NB: deleteHandle will remove the point nearest to the given point // if an // exact match is not found. So test that the point is part of the // roi // first. if (test(point)) points.deleteHandle(point.getDoublePosition(0), point .getDoublePosition(1)); } else Rois.unsupported("removePoint"); }
public void displayCounts() { ImagePlus imp = getImage(); String firstColumnHdr = "Slice"; rt = new ResultsTable();
public void displayCounts() { ImagePlus imp = getImage(); String firstColumnHdr = "Slice"; rt = new ResultsTable();
if (roi!=null) { roi.setShowLabels(!Prefs.noPointLabels); imp = roi.getImage();
if (roi!=null) { roi.setShowLabels(!Prefs.noPointLabels); imp = roi.getImage();