work on minimap

This commit is contained in:
Boki 2026-02-17 13:24:12 -05:00
parent 3bb0315912
commit 2565028ad0
4 changed files with 33 additions and 21 deletions

View file

@ -263,6 +263,7 @@ public class MinimapCapture : IFrameConsumer, IDisposable
_colorTracker.SampleFrame(hsv, wallMask);
using var kernel = Cv2.GetStructuringElement(MorphShapes.Ellipse, new Size(3, 3));
Cv2.MorphologyEx(wallMask, wallMask, MorphTypes.Close, kernel); // fill 1-2px gaps
Cv2.Dilate(wallMask, wallMask, kernel);
FilterSmallComponents(wallMask, _config.WallMinArea);