I’m trying to find the intersecting region of two ofPolylines. Specifically, one ofPolyline is a pose mask and the other is a contour from TSPS. My visual goal is to simply visualize the intersection. My current approach is too slow, was curious if anyone had any suggestions!
ofPolyline p1, p2
Find bounding boxes: b1 and b2
For each pixel in intersection(b1, b2):
---- if p1.inside(pixel) and p2.inisde(pixel):
---- ---- draw(pixel)