public void RegionTest() { var regionArray = MapFeatureDetector.GetRegions(mapIntArray); Debug.WriteLine(regionArray.ToRowString(asMap: true)); Assert.AreEqual(3, regionArray[9, 12]); Assert.AreEqual(4, regionArray[14, 27]); Assert.AreEqual(2, regionArray[56, 23]); }
public void RegionTest() { var regionArray = MapFeatureDetector.GetRegions(mapIntArray); Debug.WriteLine(regionArray.ToRowString(asMap: true)); Assert.AreEqual(3, regionArray[12, 9]); Assert.AreEqual(4, regionArray[27, 14]); Assert.AreEqual(2, regionArray[23, 56]); }
public void GetApproximateRoomCenter() { var regions = MapFeatureDetector.GetRegions(mapIntArray); var approxCenter = MapFeatureDetector.GetApproximateRoomCenter(regions, 2); }