sample: Add sample program

* Add sample code that uses opencv to display an image.
* Add cmake to build the sample.
* Add cmake related file to gitignore.