Added smile detector
Update samples/c/smiledetect.cpp

- Changed to floating neighbor maximum mode
- Fixed some previous errors.
Update samples/c/smiledetect.cpp

Fixed isdigit() Android build error
Added implementation for RGB to YUV420p color conversion
Added tests for RGB to YUV420p color conversion
Added multithreaded implementation for RGB to YUV420p color conversion
Added --regressions-only=X-FACTOR  option
refactored gpu perf tests and fixed sanity tests
fixed gpu bitwise operations with scalars
fixed warp tests
Add moments function
remove the compile warnings
add interfaces enable custom oclMat device memory type
Fix OpenCVConfig.cmake generated for Android platform (issue #2496)

* fix path to libraries in Android SDK
* allow to link to opencv_java.so as Android.mk does

To link to opencv_java.so you can either change your cmake to find OpenCV as

    find_package(OpenCV opencv_java)

or pass -DOpenCV_FIND_COMPONENTS=opencv_java to your cmake command
adjust matchTemplate in performance sample, as current version is too slow when template size isn't small
fix build errors
Merge pull request #568 from bitwangyaoyao:2.4_moments
Merge pull request #576 from bitwangyaoyao:2.4_customMat2
Merge pull request #579 from bitwangyaoyao:2.4_perfTest
Merge pull request #544 from AnnaKogan8:added-regressions-only-option