I am getting an image mask as output from deep learning model and I am trying to get contours like in this image. The contours I am expecting should be of same height pref