Working to draw boundary around an object and the object is inside the image
<p>I am trying to draw a boundary around a object, say in this case a lesion object inside an image with plain background with not much noise. I had taken the image and read pixel values. </p>

<p>And tried calculating XY coordinates along the boundary of the object using active contour algorithm but the boundary drew are on edges of the whole image instead on boundary along the object inside, which I couldn't make it any better to get good coordinates. So can you please suggest me if there is any better way to find/draw boundary around object inside image or should i go for using openCV with Xcode better to make an ios app? Kindly suggest.</p>