Closed tychotic closed 5 months ago
Also, I am using findcontours to recover the 2d hull around each seed in a voronoi graph. I assume this is a canonical use? I tried to extract individual hulls from the voronoi directly but not clear how to.
So, it's indeed the canonical way of getting the Voronoi cells! (if there is one ahah) -- however the findcountours suffers from some legacy code, I'll update ASAP to have a single target input, with each individual point being a seed.
At the moment, it's using collections as seed, which is bad. You basically need to create individual partitions from your points in order for them to act as individual seeds. I added an example in the example project (EdgesAndGraphs/FubdVoronoiCellContours)
However as you can see, some contours are picked on the wrong side: it looks like some seeds are missing their associated contour, but it's in fact creating duplicate contours from neighboring cells >.<
So bottom line: your approach is the right one, I'm the one who fucked up.
haha so it was good input I'm happy thanks again
I thought it was partionsomething
user error, better version coming anyway :D
I seem to be only getting one path back (it's a nice one) from findcountours when I am passing in multiple seeds. Should we not see multiple paths coming out? Very likely user error, still learning this system.