Add IPP support in cvtColor function
Fix a bug of retinaParameters.
When colorMode is set to 0 via Retina::_init method, _retinaParameters's
colorMode variable is not correctly assigned.
Introduce CV_COMP_CHISQR_ALT, an alternative method to calculate ChiSquare Histogram comparison

There's some disagreement about the correct formula.
has its supporters, however, for texture analysis, the newly introduced formula became
standard. The commit enables both uses without breaking backward compatibility.

First contributor of this commit was sperrholz.
Add OpenCL accelerated implementation for Retina.
Fix GPU example build failed with cuda 5.5
macros -> template in IPP support cvtColor
Fix build error when WITH_OPENCL is disabled.
Fix build error on Mac
Update cmake files by using CUDA_CUDA_LIBRARIES
fixed cpp wrappers of ML tree-based models
Ignore Windows' Thumbs.db
Make some tweaks to make `sum` operations less frequently
Fix build error.
Remove trailing whitespace.
gpu TVL1 Optical Flow optimization:

do not calculate sum of error in every round of iteration;
instead the error will be summed every 2nd times or more, 
if the previous sum of error is too far away from threshold.
correct range computations, it is difficult to do the more efficient single pass 3N/2 implementations correctly in this particular setting without costing more than they save
Merge pull request #1346 from jet47:gpu-tvl1-optimization
Merge pull request #1339 from mdim:ml_cpp_wrappers_fix
Merge pull request #1267 from clhsieh:gpu_example_build_failed_with_cuda5p5
Restored one executable bit that was lost during the war on whitespace.