minimap work
This commit is contained in:
parent
ba8626b470
commit
a152a5cead
3 changed files with 12 additions and 12 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue