fixed tests (call resetDevice, if there was a gpu failure)
fixes for gpu module:

- fixed printCudaDeviceInfo for new CC
- fixed some compilation errors and warnings
- removed unset command from CMake script
- removed unused std imports
optimizations:

- new reduce implementation (with kepler optimizations)
- saturate_cast via asm command
- video SIMD instructions in element operations
- float arithmetics instead of double
- new deviceSupports function
added more types support for gpu separable filters
implemented Luv/Lab <-> RGB conversion
fixed build for CARMA:

- added CMake toolchain file
- added WITH_NVCUVID flag
{highgui} Fix copy-paste error in conditional
Merge branch 'fix_jpg2000' into 2.4
Change Imgproc_ prefix to Photo_ in all accuracy tests of photo module
Add test for issue #2646
Fix integer overflow in NL-Means denoising on white input

Issues #2646
Improve error reporting of JPEG image encoder

OpenCV issue #2604

After this patch applied an attempt to encode empty images produces exception
saying "Raw image encoder error: Empty JPEG image (DNL not supported)"
Removed obsolete steps from Windows installation tutorial (bug #2550)
Fixed formula of YCrCb to RGB conversion (bug #2725)
applied patch #2611 that also likely fixes #2505
Fixed cheatsheet for loop (bug #2701)
Resolve warning in OpenCV Library project in Eclipse (Bug #2714)

Warning in auto generated code was suppressed by project settings.
Merge pull request #343 from taka-no-me:fix_nlmeans_2646
Extended python bindings to support scalar values and tuples in place of InputArray (i.e. Mat) - ticket #2658. Added tests for #2611, #2505, #2658
Extended python bindings to support scalar values and tuples in place of InputArray (i.e. Mat) - ticket #2658. Added tests for #2611, #2505, #2658