コード例 #1
0
        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]);
        }
コード例 #2
0
        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]);
        }
コード例 #3
0
 public void GetApproximateRoomCenter()
 {
     var regions      = MapFeatureDetector.GetRegions(mapIntArray);
     var approxCenter = MapFeatureDetector.GetApproximateRoomCenter(regions, 2);
 }