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,