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

beamerProjection.h

Blame
  • beamerProjection.h 760 B
    #ifndef BEAMERPROJECTION_H
    #define BEAMERPROJECTION_H
    #include <opencv2/opencv.hpp>
    #include "beamer.h"
    #include "camera.h"
    
    class BeamerProjection
    {
    private:
        const char *wndname = (char *)"Sandbox";
        cv::Mat adjustingMatrix;
        cv::Point2i adjustPixel(int i, int j, float z, Camera camera, cv::Point3f beamer);
    
    public:
        BeamerProjection();
        cv::Point2i rotatePixel(cv::Point2i pixel);
        void adjustFrame(cv::Mat &src, cv::Mat &dst, Camera camera, cv::Point3f beamer);
        void adjustFrame(cv::Mat &depth, cv::Mat &src, cv::Mat &dst, Camera camera, cv::Point3f beamer);
        void setAdjustingMatrix(cv::Mat matrix){ matrix.clone(); }
        cv::Mat getAdjustingMatrix(){ return adjustingMatrix.clone(); }
        void printAdjustingMatrix();
    };
    #endif