minimap work

This commit is contained in:
Boki 2026-02-13 12:20:11 -05:00
parent ba8626b470
commit a152a5cead
3 changed files with 12 additions and 12 deletions

View file

@ -81,10 +81,10 @@ public class MinimapCapture : IDisposable
// --- 6. Temporal smoothing: majority vote ---
var smoothed = TemporalSmooth(classified); // classified goes into ring buffer
// --- 7. Gray for phase correlation (walls zeroed out — structural noise) ---
// --- 7. Gray for phase correlation (player zeroed — it stays centered, walls shift with map) ---
var grayForCorr = new Mat();
Cv2.CvtColor(bgr, grayForCorr, ColorConversionCodes.BGR2GRAY);
grayForCorr.SetTo(Scalar.Black, wallMask);
grayForCorr.SetTo(Scalar.Black, playerMask);
return new MinimapFrame(
GrayMat: grayForCorr,

View file

@ -74,7 +74,7 @@ public class MinimapConfig
public int WallMinSat { get; set; } = 150;
// Floor detection: minimum V to distinguish explored floor from fog-of-war
public int FloorMinValue { get; set; } = 15;
public int FloorMinValue { get; set; } = 40;
// Connected components: minimum area to keep (kills speckle)
public int WallMinArea { get; set; } = 30;