Count regions that have similar color
Posted: 2016-01-27T11:39:11-07:00
Hello, I want to be able to detect the white regions in an image.
Here is an example.

Precondition:
- SVG or Raster image
- Only two colors (mainly): black and white
- The regions are well defined: there are no tiny regions (eg. 1x1px regions)

Postcondition:
- the numer of blank regions (11)
Thanks in advantage
Here is an example.

Precondition:
- SVG or Raster image
- Only two colors (mainly): black and white
- The regions are well defined: there are no tiny regions (eg. 1x1px regions)

Postcondition:
- the numer of blank regions (11)
Thanks in advantage