Please tell how to get rgb value of whole image. I have printed rgb value of each pixel
import cv2
# LOAD AN IMAGE USING 'IMREAD'
img = cv2.imread("tiger.jpg")
# DISPLAYg
cv2.imshow("Tiger", img)
cv2.waitKey(0)
cv2.destroyAllWindows()
print(img.shape)
[x,y,z]=img.shape
count=0
for i in range(1,x-1):
for j in range(1,y-1):
print(img[i,j])
count=count+1
print(count)