A series of convenience functions to make basic image processing operations such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and Python.
MIT License
4.51k
stars
1.03k
forks
source link
let opencv2matplotlib work with float images as well #244
OpenCV represents images in BGR order; however, Matplotlib
# expects the image in RGB order, so simply convert from BGR
# to RGB and return
_# return cv2.cvtColor(image, cv2.COLOR_BGR2RGB)_
**return image[...,::-1]** # to also work with float images
def opencv2matplotlib(image):
OpenCV represents images in BGR order; however, Matplotlib