Added call to clone() to avoid unexpected change to external data.
- Fix both stitching_detailed.cpp sample and cv::Stitcher.
Merge pull request #2939 from adishavit:sample-fix_stitching_pipeline