private static bool[,] ConvertToBoolArray(ImageBoolGrid imgeBoolGrid)
        {
            bool[,] result = new bool[imgeBoolGrid.Width(), imgeBoolGrid.Height()];
            for (int i = 0; i < imgeBoolGrid.Width(); i++)
            {
                for (int j = 0; j < imgeBoolGrid.Height(); j++)
                {
                    result[i, j] = imgeBoolGrid[i, j];
                }
            }

            return(result);
        }