Width of contour for all y-values

contours are the wrong data structure for some operations.

got the mask of this?

then find the leftmost and rightmost pixel for every scanline.

np.argmin and np.argmax can help with that.

1 Like