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.
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.