Ask Your Question

Image Labeling via OpenCV

asked 2013-03-04 08:50:33 -0600

matteo gravatar image

hi, does somebody know how i could perform image labeling or a similar function that allows to colour different groups of contiguous pixels with different colours? thanks

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-03-04 09:34:12 -0600

OpenCV does not have built in labeling software. However you could present a picture in a window, then use actiongrabber on your mouse pointer to define what needs to be done when going over pixels. By preselecting a color from a menu, masks could be created this way.

If you want to share ideas on labeling software, feel free to ask, im using it in my PHD study and trying to obtain a universal labeler by listening to the different things people would like to have included in it!

edit flag offensive delete link more


thanks, but it should work in an automatic mode...(visual servoing). it was told me to check "cvFloodFill" OpenCV function...doesn't it make something similar?

matteo gravatar imagematteo ( 2013-03-05 05:32:41 -0600 )edit

Then what you actually need, is an automatic segmentation of the area into possible regions? Then google the watershed algorithm. It is what the cvFloodFill applies internally.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-03-05 06:37:43 -0600 )edit

thanks again...why can I not use directly the function cvFloodFill?

matteo gravatar imagematteo ( 2013-03-05 07:07:10 -0600 )edit

you could use the functionality, but I do not know by head how this function works. So you should look it up :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-03-05 08:24:33 -0600 )edit

answered 2013-03-05 03:18:03 -0600

Siegfried gravatar image

Hi, take a look at this post. There are links to two different labeling tools.

edit flag offensive delete link more


thanks for the answer, but i would like to remain in OpenCV environment: i need this function to implement a visual servoing control of i should use it as a part of a bigger program and not as a tool.

matteo gravatar imagematteo ( 2013-03-05 05:38:45 -0600 )edit

Question Tools


Asked: 2013-03-04 08:50:33 -0600

Seen: 8,310 times

Last updated: Mar 05 '13