Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
102 views
in Technique[技术] by (71.8m points)

python - Getting vertex indexes from subdiv

How can I get the vertex indexes from a subdiv in Python?

For example, in the code bellow i got the list of coordinates of the triangles made from a list of points, but i would like to get the indexes of the points (mypts) of these triangles vertex:

retangulo = (0, 0, tam_img[1], tam_img[0])
subdiv = cv2.Subdiv2D(retangulo)
for pts in mypts[0]:
    subdiv.insert(pts)
tl = subdiv.getTriangleList()

The triangles are from a Delauney Triangulation.

question from:https://stackoverflow.com/questions/65920912/getting-vertex-indexes-from-subdiv

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...