$ 0 0 Well, that Gray format is not supported by hardware and involves that it's converted from color to gray. Most cameras support YCrCb or similar where you can just use the Y component for brightness value.