Skip to content
Snippets Groups Projects
Select Git revision
  • 38580914184322a23c263b59ac25f6d71b4512c0
  • master default protected
  • opencv4
  • custom_realsense
  • deproject
  • camera
6 results

sandboxSetup.h

Blame
  • sandboxSetup.h 1.13 KiB
    #ifndef SANDBOXSETUP_H
    #define SANDBOXSETUP_H
    
    #include <opencv2/opencv.hpp>
    #include "beamer.h"
    #include "beamerProjection.h"
    #include "camera.h"
    #include "borderedit.h"
    #include "sandboxConfig.h"
    
    class SandboxSetup{
        private:
            char *defaultConfigFilePath = (char *)"./sandbox_conf.yaml";
            
            double toDegrees(double radians);
            void initWindowsFullScreen(char *windowName);
    
        public:
            SandboxSetup();
    
            BeamerProjection projection;
            Camera camera;
            Beamer beamer;
            
            // save config in file => persistant
            int saveConfigFrom(char *path);
            int saveConfig();
            int saveFrameProcessProfil();
    
            // edit variables of config => not persistant
            int setupProjection();
            int setupBeamerResolution();
            int setupBeamerLocation();
            int loadFrameProcessProfil();
    
            void setBeamerResolution(cv::Size resolution);
            void setBeamerPosition(cv::Point3f pos);
            void setCroppingMask(cv::Rect mask);
            void setAdjustingMatrix(cv::Mat matrix);
            void setFrameProcessProfil(FrameProcessProfil profil);
    
    };
    
    #endif