how to detect several shapeless object in an image

asked 2016-05-16 12:16:48 -0600

choco gravatar image

Hi guys! how could i detect the object as shown in 1st image? or would it be easier by using 2nd image? It is ok to ignore the small dots/noise, but i wan to detect at least the larger shape. It would be helpful if any keywords is provided for me to learn :)

1st picture

2nd picture

edit retag flag offensive close merge delete

Comments

1

First image is easyer than second keywords : threshold findContour or ConnectedComponents have a look at example here

LBerger gravatar imageLBerger ( 2016-05-16 12:20:48 -0600 )edit

thanks! i will try it now^^

choco gravatar imagechoco ( 2016-05-16 12:34:47 -0600 )edit
1

You may wish to run the morphological close operation to remove holes and connect nearly connected pieces.

Tetragramm gravatar imageTetragramm ( 2016-05-16 18:33:04 -0600 )edit

close operation on second image?

choco gravatar imagechoco ( 2016-05-16 23:05:00 -0600 )edit

Morphological operation are used to fill hole or create hole (you can make gradient too and ....). Do you need this and your image? What are your shapes?

LBerger gravatar imageLBerger ( 2016-05-17 06:43:03 -0600 )edit