P
P
Pavel Zhukau2016-08-25 23:15:13
Programming
Pavel Zhukau, 2016-08-25 23:15:13

How to find the coordinates of the extreme points of an image?

Hello everyone, the question arose, how to get the extreme points for the image in order to further use it in svg path d?
That is, a picture is loaded, of the form,
1638t.png
and you need to circle it further along the contour.
Thanks in advance for helpful replies and advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2016-08-25
@xmoonlight

Use InkScape (svg editor), get the outline from the picture and the svg-path will be ready.
Programmatically: construction of connected Bizer curves + border "slider", where the border is transparent / opaque pixels along the image perimeter, in other words: "corrosion" of the contour stroke.
If in PHP - you can use the GD library. (and in general - any language and its means for pixel manipulation with an image)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question