Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

RGB Mat always over 100

I'm writing a program that test for display lag. I have a variables that tell me the rgb values of a pixel so I use System.nanotime with and an empty while loop that ends when the rgb variables reaches 100, combined with the subtraction of another System.nanotimeafter the loop to get the amount of time for a color to show up (second System.nanotime - first System.nanotime). I get the time in nanoseconds and divide it by 1,000,000 so I can get the time in milliseconds, the issue is that rgb is alway over 100 when i have it right up to the display, even when a white square is on the display. When I back the camera about a foot away the rgb seem normal. Is there a way to make the rgb values normal when it is close up to the display?