I'm developing an android app that for every YUV image passed from camera, it randomly pick 10 pixels from it and check if they are red or blue. 
 I know how to do this for RGB images, but not for YUV format.
 I cannot convert it pixel by pixel into a RGB image because of the run time constrains.