source: pacpussensors/trunk/Vislab/Display.cpp@ 130

Last change on this file since 130 was 127, checked in by ldecherf, 8 years ago

Version 1 du plugin Vislab testé sous linux

File size: 577 bytes
Line 
1#include "Display.h"
2#include <iostream>
3#include <lib3dv-1.2.0/lib3dv/device.h>
4#include <QMetaType>
5#include "VislabImageProcessor.h"
6
7Display::Display(const QString& windowName, lib3dv::image::type::types imageType) : VislabImageProcessor(windowName, imageType)
8{
9 qRegisterMetaType<cv::Mat>("cv::Mat");
10 connect(this, SIGNAL(doDisplay(cv::Mat)),SLOT(DisplayFrame(cv::Mat)));
11
12}
13
14void Display::DisplayFrame(cv::Mat const& frame)
15{
16 cv::imshow(getName().toStdString(), frame);
17}
18
19void Display::process(cv::Mat const& frame)
20{
21 emit doDisplay(frame);;
22}
23
24
25
26
27
28
29
30
31
32
Note: See TracBrowser for help on using the repository browser.