I am working with opencv 2.4 and numpy. I would like to open an image and get all the informations about it (8 bit - if its RGB-BGR etc) and also try to change the color space. I have this code:
if __name__ == '__main__': img = cv2.imread('imL.png') conv= cv2.cvtColor(img, cv2.COLOR_BGR2LAB) cv2.imwrite('lab.png', conv )
But when i open the file lab.png i get the image with different colors! I check tha value of BGR to LAB in: http://www.brucelindbloom.com/
For this i would like to know all the information about one image.