added histogram example based on opencv

Task reference #222

I am not able to have a consistent results with following code.
Can you have a look on this?

Depends on the image format. For RGBA that order is correct. But for BGRA, pixel.x/y/z/w will be b/g/r/a.