How to delete point(already inserted) in subdiv2d (python)
I implemented subdiv2d and insert some points as the following way to construct Delaunay triangulation.
size = img.shape
rect = (0, 0, size[0], size[1])
subdiv = cv2.Subdiv2D(rect)
points = []
x = 0
while(x<size[0]):
y = 0
while(y<size[1]):
points.append((x, y))
y = (y + 50)
points.append((x, size[1]-1))
x = x + 50
subdiv.insert(points)
I want to remove some points after that, let's assume I want to remove (0, 0), or (50,50) point from subdiv, that I already inserted through point array. How can I do this? please help me.