1
$\begingroup$

What is a easy and fast way to get a list of all points on the edges of the following image ?

img = Import["https://imgur.com/1sAtNOk.png"]

enter image description here

I tried to using the function EdgeDetect

 img = Binarize[img~ColorConvert~"Grayscale"~ImageResize~500~Blur~3]//EdgeDetect

enter image description here

but what next?

$\endgroup$
1

1 Answer 1

3
$\begingroup$
fig = Import["https://i.stack.imgur.com/43gUl.png"];
cm = ComponentMeasurements[Binarize@fig, "Contours"];

Graphics[{cm[[1, 2,2;;-1]]}]

enter image description here

The cm[[1,2,2;;-1]] contains the outer contour of apple as a Line@{pt1,pt2,pt3,...}

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.