+---------------+
| |
| white |
| |
+------+ | +---------------+
| | | |
| | | white |
+--------+ | |
| |
+---------------+
+--------------------------+ black
| |
| |
| white |
| |
| |
+--------------------------+
How can I label and colorize the 3 shapes for a simple image (like above).
- using connected component analysis with 8 neighborhood
- the shapes are white colored and the outside is black
- each of the shapes will get a color like blue, green, etc.
- should be a simple code (with MATLAB) which processes the image pixel by pixel according to connected component analysis
Thank you for any help.