geo regions counter
1.0.0
This program counts number of regions that are separated with borders in a 2D binary matrix which represents a geographic data.
..#......................#######
.#########..............#......#
####......#............#########
...........#..........#.........
...........#..........#.........
...........#.........#..........
#############.........#.........
.............#.........#........
............#.#.........###....#
...........#...#......##...#.##.
..........#.....##...#......#...
........##........###......#....
.....###..#...##...#....###.....
..###......###..####..##..#.....
##..........#.......##.....#....
............#...............##..
............#.............##..##
............###############......
This data will produce the result 12 since there are 12 regions. Edges of the data is assumed as borders.