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

beamer.h

Blame
  • beamer.h 767 B
    #ifndef BEAMER_H
    #define BEAMER_H
    #include <opencv2/opencv.hpp>
    #include "camera.h"
    
    class Beamer
    {
    private:
        const char *BEAMER_POSITION_FILE = "./beamer.dat";
        float solveD(cv::Vec3f v, cv::Point3f p);
        cv::Point3f intersection(cv::Vec3f v1, cv::Point3f p1, cv::Vec3f v2, cv::Point3f p2, cv::Vec3f v3, cv::Point3f p3, bool &isFound);
        std::vector<int> findCercleZ(cv::Mat &rgb);
        cv::Point3f beamerPosition;
        int width = 1400;
        int height = 1050;
    
    public:
        Beamer();
        cv::Point3f getPosition(){ return beamerPosition; };
        void setPosition(cv::Point3f pos){ beamerPosition = pos; };
        int getWidth(){ return width; };
        int getHeight(){ return height; };
        void findBeamerFrom(Camera camera);
    
        void printPosition();
    };
    #endif