Made changes to allow ml module to work with big data.
a part of PR269 (parallelization of several functions) by Alexander Mordvintsev
Changed types of some variables from int64 back to int.
Also corrected some indexes to be size_t.
Merge pull request #405 from vpisarev:znah_patch
Smartek Giganetix Cameras support (Patch #2192) integrated.
Fixed dummy warning.
Update regression checks in Java test

This follows SURF changes in 1f261c2
Merge pull request #407 from taka-no-me:fix_java_after_surf_change
Fix setting of FPS after frame width and height with DShow cameras

Issue #2114
Remove unused vars
Fix subtle bug when src & dst agree on sparsity but have different dimensions
Remove unused var "total"
Declare vars as locally as possible
Merge pull request #415 from asmaloney:cvCopyHist-fix
Merge pull request #414 from asmaloney:remove-unused-vars2
Check memory allocation
Initialize local variables
Check memory allocation
Declare vars as locally as possible
Remove unused constructor
Add checks for valid values
Fix wording on some errors
No need to check vector size before clear()
add setDeviceEx interface
simplify the logic of save binary
Merge pull request #395 from LeonidBeynenson:fix_ml_large_data_bug__2.4
Merge pull request #410 from taka-no-me:fix_cap_dshow_setfps