Skip to content
Snippets Groups Projects
Select Git revision
  • e071be9ae0ed3b682754d59a4b1afc1e1e4b19f8
  • main default protected
  • add_export_route
  • add_route_assignments
  • 4.1.0-dev
  • 4.0.0
  • 3.5.3
  • 3.5.3-dev
  • 3.5.2
  • 3.5.2-dev
  • 3.5.1
  • 3.5.1-dev
  • 3.5.0
  • 3.4.2
  • 3.4.1
  • 3.4.0
  • 3.3.0
  • 3.2.0
  • 3.1.3
  • 3.1.2
  • 3.1.1
  • 3.1.0
  • 3.0.1
  • 3.0.0
24 results

AssignmentRoutes.ts

Blame
  • Forked from Dojo Project (HES-SO) / Projects / Backend / DojoBackendAPI
    Source project has a limited visibility.
    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