I'm working in Python reading in images, and getting a 3-dimensional matrix of RGB values for pixels.
I want to take these 3-d arrays and make a matrix with only RGB values equal to r=62, g=57, b=47.
How can I do this? I've looked into masking but I don't understand how to implement this.
Edit: I'm talking about numpy arrays not lists. numpy has a lot of built in functions, for loops are pretty inefficient.