Can create training set in PNG format

The format of the training set can be changed with the `-pngoutput` key.
Output image will be resized to a 640x480 size if greater.
Typo in string fixed
Class naming update
Documentation improvement
Bug in output format for JPG set fixed
Naming fixes and code beautification
No output image resize in case of PNG dataset
Documentation update: createsamples usage
Include for cvSameImage corrected
Warning on converting int to bool fixed
Merge pull request #3156 from sergregory:CreateSamplesMod
support invokation of cv windows from parallel threads to an external qt application.
make sure children are included in the moveToThread
Python tests added to -tests deb package.
Merge pull request #3197 from asmorkalov:python_tests_package
Merge pull request #3194 from stonier:2.4