Reputation: 8785
I am working with opencv mats, which are numpy arrays representing images.
Is there a way to get the sum of all x,y coordinates in a frame that is 1) most efficient 2) most pythonic?
frame[xpos][ypos][0] #note there are really 3 values for each pixel but i want [0]
Upvotes: 1
Views: 142