title: OpenCV - How to loop through pixels in Java?
body: <p>I'm trying to use the camera in more complicated ways on our frc team and have just started using OpenCV with Java. I have been trying to loop through all the pixels because I want to get the color values to detect the colors shown through the camera. </p>
  
  <p>I've been able to get pixels using the <code>.put(col, row, valueToPut)</code> and <code>.get(col, row)</code> methods. But I can't loop through all the pixels (there are 640x480 of them), because our roborio is too slow. I also know that the <code>.put</code> and <code>.get</code> methods are quite slow. </p>
  
  <p>Does anyone know what I'm supposed to do to make it faster?</p>