ECOVI | Computer Vision

L1.3: Region labelling

Homogeneous region detection

Task preparation

Open the Color Thresholder App and load the baloons.png image. Select either HSV or RGB color space. Using sliders on the right side of the window (setting R, G, B or H, S, V ranges) create a mask, that filters only a single baloon.

Homogeneous region detection

Your task is to implement simple region growing segmentation of color objects. Use the same baloons picture and getpts to select starting point of the segmentation. After selecting the starting point, grow the region by adding surrounding pixels as long as they are similar to those already inside the region. Select proper thresholds, so that the selected baloon is well segmented, without too much noise on the edges. Work in either RGB or HSV color space.

Hints

You can make some preprocessing of the image if you need, like blurring to get rid of initial grain/noise.