made the example consistent with the fuction definition and improved doc

made the example consistent with the fuction definition and improved doc
Merge branch 'old_basic_structures_doc_fix' of https://github.com/yashdv/opencv into old_basic_structures_doc_fix