Sample and resample value for a loop

asked 2015-08-24 02:42:44 -0600

nbun gravatar image

updated 2015-08-24 07:32:06 -0600

I need to sample a 1x1 Mat that is converted to an int. When I make a loop like this

while (grayVal <= 100){
            Log.i("Mat Value", String.valueOf(grayVal));                
        }

grayVal never changes, I know that I need to resample grayVal and pass it back into the loop. How would I go about doing this.

edit: here is my code http://pastebin.com/4HA9H39f

edit retag flag offensive close merge delete

Comments

the value of a single pixel will only change, once there is a new frame from the camera. your loop is useless in the 1st place.

berak gravatar imageberak ( 2015-08-24 09:39:01 -0600 )edit