Skip to content
Snippets Groups Projects
Select Git revision
  • 58194268b4f5497218b116fb20674a01a2715fb6
  • master default protected
  • array_3d
  • gradients
  • poylgonise
  • apps
  • bench
  • streaming_modif
  • bug
  • multi_thread
  • refactoring_c_code
  • futhark_refac
  • one_dim_t_floats
  • reg
  • reg_order3
  • trying_base64
  • merging_j
  • trying_regularized
  • futharkalabos3d_troels_3d
  • futharkalabos3d_troels
  • futharkalabos3d_tuple
21 results

tensor_field.c

Blame
  • main.cpp 2.05 KiB
    
    
    #include <QApplication>
    #include "mainwindow.h"
    
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
        MainWindow main;
        main.show();
        return app.exec();
    }
    
    /*
    
    #include <QApplication>
    #include "monitorgui.h"
    #include "camerafocus.h"
    #include "croppingmask.h"
    #include "projectiongui.h"
    #include "qtfullscreen.h"
    #include "beamerlocationgui.h"
    #include <sandboxSetup.h>
    
    
    void exit_msg(SandboxSetup *setup, std::string msg){
        setup->getCamera()->stop();
        std::cout << msg << std::endl;
        exit(1);
    }
    
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
    
        SandboxSetup setup;
        MonitorGui mg;
        ProjectionGui pg(&setup, &mg);
        CameraFocus cf(&setup);
        CroppingMask cm(&setup, &mg);
        BeamerLocationGui bl(&setup, &mg);
    
        setup.getCamera()->start();
    
    
        // Select output screen and projection's resolutions
        mg.show();
        app.exec();
        if(!mg.isOk()){
            exit_msg(&setup, "Cancel resolution");
        }
        setup.getBeamer()->setResolution(cv::Size(mg.getWidth(), mg.getHeight()));
    
    
        // Setup camera and beamer physically
        pg.show();
        app.exec();
    
    
        // Edit frame process profil for the setupBeamerLocation routine
        cf.show();
        app.exec();
        if(!cf.isOk()){
            exit_msg(&setup, "Cancel camera parameters");
        }
    
    
        // Setup the adjust matrix and cropping mask
        cm.show();
        app.exec();
        if(!cm.isOk()){
            exit_msg(&setup, "Cancel drop");
        }
        if(cm.updated()){
            cv::Size s = setup.getCamera()->getDepthFrame().size();
            cv::Point center(s.width / 2, s.height / 2);
            std::vector<cv::Point> rectPoints = cm.getRectPoints();
    
            setup.setupAdjustMatrix(rectPoints, center);
            setup.setupCroppingMask(rectPoints);
        }
    
        // Setup the beamer location
        bl.show();
        app.exec();
        if(!bl.endedSuccessfully()){
            exit_msg(&setup, "Cancel beamer position");
        }
    
        // Save config in file
        if(setup.saveConfig()){
            exit_msg(&setup, "Failed to save configuration");
        }
    
        setup.getCamera()->stop();
        return 0;
    
    
    }
    */