Skip to content
Snippets Groups Projects
Select Git revision
  • 7ea36ca6be98be0ab6c43c9d7fc62e257ebfea37
  • main default protected
  • jw_sonar
  • v6.0.0 protected
  • interactive-mode-preference
  • bedran_exercise-list
  • add_route_user
  • Jw_sonar_backup
  • exercise_list_filter
  • assignment_filter
  • add_route_assignments
  • move-to-esm-only
  • 6.0.0-dev
  • Pre-alpha
  • 5.0.0
  • Latest
  • 4.2.0
  • 4.1.1
  • 4.1.0
  • 4.0.1
  • 4.0.0
  • 3.5.0
  • 3.4.2
  • 3.4.1
  • 3.3.0
  • 3.2.3
  • 3.2.2
  • 3.2.0
  • 3.1.2
  • 3.1.1
  • 3.1.0
  • 3.0.1
32 results

SessionTestCommand.ts

Blame
  • sandbox.h 1.23 KiB
    #ifndef SANDBOX_H
    #define SANDBOX_H
    
    #include <librealsense2/rs.hpp>
    #include <librealsense2/rsutil.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <bits/stdc++.h>
    #include <iostream>
    #include "serializable.h"
    #include <opencv2/opencv.hpp>
    #include "camera.h"
    #include "beamer.h"
    #include "calibrate.h"
    #include "borderedit.h"
    #include "borderfinder.h"
    #include <QPixmap>
    #include <QLabel>
    #include <QImage>
    
    using namespace rs2;
    using namespace std;
    
    class Sandbox : Serializable
    {
    public:
    private:
        context ctx;
        device_list listRealSenseDevices;
        device realSenseDevice;
        char* realSenseDeviceSerialNumber;
        Camera camera;
        Calibrate calibrate;
        Rect rectSandbox;
        vector<Point> rectPoints;
        Point center;
    
    public:
        Sandbox();
        device_list getListRealSenseDevices();
        void setRealSenseDevices(device device);
        device getRealSenseDevice();
        void loadListRealSenseDevices();
        void saveConfiguration();
        void serialize(ostream& stream);
        string deserialize(istream& stream);
        Mat configure();
        double toDegrees(double radians);
        void applyBorder();
        Mat generateBorder();
        int findEdgeBorder(int x, int y);
        Mat editEdgeBorder(int selectedPoint, int x, int y);
    };
    
    #endif // SANDBOX_H