Monday, 15 October 2018

How to plot 3d graphics with the values ​of each pixel of the image?

I convert a picture's colors to LAB as follows:

import cv2
imbgr=cv2.imread('photo.jpg')
imlab=cv2.cvtColor(imbgr,cv2.COLOR_BGR2LAB)
cv2.imwrite('lab.jpg',imlab)

return the pixels with imlab [x, y], how to plot the graph with these values?



from How to plot 3d graphics with the values ​of each pixel of the image?

No comments:

Post a Comment