#include #include #include #include #include #include "svimage.h" #include "svprocessor.h" #include "svimageprovider.h" #include "svpointcloudviewer.h" int main(int argc, char *argv[]) { QGuiApplication a(argc, argv); qmlRegisterType("SvPCV", 1, 0, "SvPointCloudViewer"); QQmlApplicationEngine engine; SvImageProvider imageProvider; QImage imgLeft("../CSV/img/right9.png"); QImage imgRight("../CSV/img/right1.png"); SvImage left(imgLeft); SvImage right(imgRight); SvPointCloud pointCloud(imgLeft.width(), imgLeft.height()); SvProcessor proc(4); proc.enqueueImage(&pointCloud, &left); imageProvider.addImage("left", &left); imageProvider.addImage("right", &right); engine.addImageProvider("images", &imageProvider); engine.rootContext()->setContextProperty("processor", &proc); engine.load(QUrl(QStringLiteral("qrc:///Main.qml"))); proc.start(); return a.exec(); }