Merge branch 'develop' of https://github.com/marconak/Arvis into features-backgroundChanges-Jano
Merge branch 'develop' of https://github.com/marconak/Arvis into features-backgroundChanges-Jano
[CoreGraph] add createTextureBacground() method that create background node from texture as QUAD rectangle. update   This is only prototyp method with bugs.          TODO: -separate node in own class, -add option to change texture. -bug with resiying window
[CoreGraph] update createTextureBackgroung(), add conversion from cv::Mat to osg::Image, fix orientation of texture.
[CameraStream] add class CameraStream that subclasses osg::ImageStream, so this class can be used as osg::Image in texture, and its posiisble dynamicly change image. When dirty() is called, all textures that uses this stream are automatickly updated.  It is also subclasses QObject so, thare was added slot updateBackgroundImage(cv::Mat cvImg) that set class's image and call dirty().
[CoreGraph] update createTextureBacground() method to use CameraStream. fix bug with creating texture and stateset first as geometry, that caused crash.
[ArucoThread, FaceRecognitionThread] add signals pushBackgrImage for sending image to update bacground if mSendBackgrImgEnabled is set. Add also slots for setting this variable.
[CoreGraph] add getter form mCameraStream, that will be needed for creating connection to slot updateBackgroungImage().
[FaceRecognitionWindow] add checkboxs and slot for them, that enable/disable sending actual frame from Aruco or FaceDet threads via new added signals. Only 1 thread can send its image for background, but ist independent from image sending to faceDetection window, and that is cool :)
[OpenCVCore] added 4 connections. 2 for sending image from Aruco or FaceDet to mCameraStream from CoreGraph. 2 from FaceRecognitionWindow to this threads for enabling/disabling this image sending. This is the first prototym with  video on background.   TODO: - resizing problem, - bacgroung ratio problem, - automatic disablin camera rotation problem.
[CameraManipulator] add automatic disabling camera rotation on startup if video if textureBacground is set - skybox.noise=2 in config.
[CameraStream] add updateGeometryCoords() method, that update geometry vertexArray according to image dimensions, to get not deformet texture - geometry has same ratio as image. Apply this change also in CoreGraph so CameraStream object is inicialized with geometry in parameter to use this feature.
[CamerStream] fix bug with colors(RGB->BGR), fix bug with horizontal size of backgroung geometry. Change yoom of background, so video background fits better to screen.
[CoreGraph] add createOrtho2dBackground() method for creating video background but in 2D mode with orthogonal projection.
[CoreGraph] add createBackgroung() to make creating bacground more clear and separating creating skynoise box to own createSkyNoiseBox() method.
[CoreGraph] change pointers to ref_ptr and fix orientation of texture in createOtho2dBacground(), add fas-forward declaration of CameraStream, update config
[CoreGraph, CameraStream] fix low performance in when video background is active (resize power 2 hint bug) and some small updates.
[Camera] refactor code for IplImage
[Kinect] refactor Kinect end Windows
[CameraStream] fix compilation problems on Win32 platform with creating black cv::Mat and fix conversion cv::Mat to osg::Image.