Bugfix #2532 patch 4 corner detection sample possible bug solved.

Tutorial text was not consistent with tutorial source code in samples directory.
Inline source code was replaced on "includeliteral" directive with link to cpp file.