Fix cmake to build OpenCV framework on OSX
SSE4.1 optimiation of cv::Moments CV_16U
cudabgsegm module was not compiling.  Changing all references of opencv2/legacy.hpp to opencv2/cudalegacy.hpp seemed to work.
I'm new at this so it would be good to have someone familiar with the build system confirm the change.
[HighGUI] On Windows: Support Ctrl+C to copy image to clipboard.
Added documentation.
Fixed indentation.
Clarified code.
fixed perf test
corners
Split highgui module to videoio and highgui
Refresh code. Fix merge conflict
added timelapse
Openni2 support
Merge pull request #2964 from vbystricky:highgui_split
Function for drawing arrows

Porting the [PR 2970](https://github.com/Itseez/opencv/pull/2970) To the new InputOutputArray type
Merge pull request #2933 from ilya-lavrenov:sse_moments
Merge pull request #2979 from PhilLab:patch-2
Merge pull request #2925 from BloodAxe:osx-framework-script
Merge remote-tracking branch 'origin/master' into Openni2Support

Conflicts:
	modules/highgui/CMakeLists.txt
	modules/highgui/include/opencv2/highgui.hpp
	modules/highgui/include/opencv2/highgui/highgui_c.h
Openni2 support