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$
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,...}

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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