Python Numpy Array To Opencv Image Segmentation In Medical Imaging