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?

pixel.x/y/z/w is equivalent to r/g/b/a right?

I had to switch the index to match with OpenCV results.