Skip to content

Commit

Permalink
release41
Browse files Browse the repository at this point in the history
- Improved visibility of selected features
  • Loading branch information
lessthanoptimal committed Sep 2, 2022
1 parent a318a2c commit 1149a34
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import boofcv.factory.feature.detect.intensity.FactoryIntensityPoint;
import boofcv.factory.feature.detect.selector.ConfigSelectLimit;
import boofcv.factory.feature.detect.selector.SelectLimitTypes;
import boofcv.gui.BoofSwingUtil;
import boofcv.gui.ListDisplayPanel;
import boofcv.gui.feature.VisualizeFeatures;
import boofcv.gui.image.ShowImages;
Expand Down Expand Up @@ -72,10 +73,12 @@ public static BufferedImage renderLimit( GrayF32 intensity, SelectLimitTypes typ

// render each selected maximum with a circle
Graphics2D g2 = output.createGraphics();
g2.setColor(Color.blue);
BoofSwingUtil.antialiasing(g2);
g2.setStroke(new BasicStroke(2.0f));
g2.setColor(Color.WHITE);
for (int i = 0; i < features.size(); i++) {
LocalExtreme c = features.get(i);
VisualizeFeatures.drawCircle(g2, c.location.x, c.location.y, NON_MAX_RADIUS);
VisualizeFeatures.drawCircle(g2, c.location.x, c.location.y, 10);
}
return output;
}
Expand Down

0 comments on commit 1149a34

Please sign in to comment.