Obtain continuous closed contour

asked 2018-02-19 04:29:25 -0500

BhanuKiran gravatar image

Hi,

image description This contour lines are directly produced from the code taken from "Finding contours in your image" link

Here i am looking to extract single separate lobster (left lobster, right lobster). Is there anyway to combine the near by contours with little threshold and make a single large contour ?

edit retag flag offensive close merge delete

Comments

Apply edge sharpening as pre processing using Filter2D. Then many edges become visible. Then find the contours and fit a convex hull around them as in https://dsp.stackexchange.com/questio...

ManuVISION gravatar imageManuVISION ( 2018-02-21 11:54:35 -0500 )edit