Skip to content
Snippets Groups Projects
Select Git revision
  • bab8ccf0a8a90ddd9d41c25de3b15856c2671de3
  • master default protected
  • radhwan.hassine-master-patch-03421
  • radhwan.hassine-master-patch-79254
4 results

cours_12.md

Blame
  • Forked from algorithmique / cours
    Source project has a limited visibility.
    beamerProjection.h 723 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();
    
            void setAdjustingMatrix(cv::Mat matrix){ matrix.clone(); }
            cv::Mat getAdjustingMatrix(){ return adjustingMatrix.clone(); }
    
            cv::Point2i rotatePixel(cv::Point2i pixel);
            void adjustFrame(cv::Mat &depth, cv::Mat &src, cv::Mat &dst, Camera camera, cv::Point3f beamer);
            void printAdjustingMatrix();
    
    };
    #endif