<filename>VelRGBLog.py
import cv2
Complete = cv2.imread("Velocity2RGB.png")
cv2.cvtColor(Complete, cv2.COLOR_BGR2RGB)
b, g, r = cv2.split(Complete)
i = 0
v = 0
c = 0
f = open('VelRGBLog.txt','w')
while(True):
    while i <= 7:
        h = 0
        while h <= 15:
            if h >= 8:
                x = 82 + 45*h
            else:
                x = 20 + 45*h
            y = 20 + 45*i
            f.write(str(v)+' ('+str(r[y,x])+', '+str(g[y,x])+', '+str(b[y,x])+')\n')
            h += 1
            v += 1
        i += 1
    
    cv2.imshow("Final", Complete)
    k = cv2.waitKey(32)
    if k == 32:
        break
cv2.destroyAllWindows()
f.close()

<filename>VelRGBLog.py
import cv2
Complete = cv2.imread("Velocity2RGB.png")
cv2.cvtColor(Complete, cv2.COLOR_BGR2RGB)
b, g, r = cv2.split(Complete)
i = 0
v = 0
c = 0
f = open('VelRGBLog.txt','w')
while(True):
    while i <= 7:
        h = 0
        while h <= 15:
            if h >= 8:
                x = 82 + 45*h
            else:
                x = 20 + 45*h
            y = 20 + 45*i
            f.write(str(v)+' ('+str(r[y,x])+', '+str(g[y,x])+', '+str(b[y,x])+')\n')
            h += 1
            v += 1
        i += 1
    
    cv2.imshow("Final", Complete)
    k = cv2.waitKey(32)
    if k == 32:
        break
cv2.destroyAllWindows()
f.close()
