public void FnSingleCntrTest()
        {
            byte[][] env = new byte[6][];
            env[0] = new byte[] { 0, 0, 0, 0, 0, 0 };
            env[1] = new byte[] { 0, 2, 3, 7, 3, 0 };
            env[2] = new byte[] { 0, 4, 5, 7, 0, 0 };
            env[3] = new byte[] { 0, 4, 4, 3, 0, 0 };
            env[4] = new byte[] { 0, 4, 4, 3, 0, 0 };
            env[5] = new byte[] { 0, 0, 0, 0, 0, 0 };

            Contour_Func fn     = new Contour_Func();
            var          single = fn.FnSingleCntr(env, fn.clockwiseOffset);

            Assert.Fail();
        }
        public void CheckBoundaryTest()
        {
            int[] startPos = new int[] { 0, 0 };

            Contour_Func fn   = new Contour_Func();
            var          expl = fn.clockwiseOffset;

            int[] currddirection = new int[] { 1, 0 };
            for (int i = 0; i < 8; i++)
            {
                Console.WriteLine(fn.CheckBoundary(startPos, currddirection, 6, 6));
                currddirection = expl[currddirection];
            }

            Assert.Fail();
        }