Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

Python faster pixel access

$
0
0
I'm using a double for loop to iterate over an image, and it's very slow: for j in range(0, hsv_frame.shape[0]): for i in range(0, hsv_frame.shape[1]): h = frame[j, i, 0] s = frame[j, i, 1] v = frame[j, i, 2] Is there any other way to iterate over the image?

Viewing all articles
Browse latest Browse all 2088

Trending Articles