how to detect several shapeless object in an image

asked May 16 '16

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

Preview: (hide)

Comments

1

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

LBerger gravatar imageLBerger (May 16 '16)edit

thanks! i will try it now^^

choco gravatar imagechoco (May 16 '16)edit
1

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

Tetragramm gravatar imageTetragramm (May 17 '16)edit

close operation on second image?

choco gravatar imagechoco (May 17 '16)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 (May 17 '16)edit