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

Last change on this file since 148 was 142, checked in by ldecherf, 7 years ago

Ajout de la classe outputter et modification d'openCV

File size: 808 bytes
RevLine 
[127]1#include "Display.h"
2#include <iostream>
[142]3#include <lib3dv/device.h>
[127]4#include <QMetaType>
5#include "VislabImageProcessor.h"
6
[131]7 /*! A more elaborate description of the constructor*/
[127]8Display::Display(const QString& windowName, lib3dv::image::type::types imageType) : VislabImageProcessor(windowName, imageType)
9{
10 qRegisterMetaType<cv::Mat>("cv::Mat");
11 connect(this, SIGNAL(doDisplay(cv::Mat)),SLOT(DisplayFrame(cv::Mat)));
12
13}
14
[131]15/*! DisplayFrame function from the Display class with a cv:Mat parameter */
[127]16void Display::DisplayFrame(cv::Mat const& frame)
17{
18 cv::imshow(getName().toStdString(), frame);
19}
20
[131]21/*! process function from the Display class with a cv:Mat parameter
22 Emit the signal to diplay the frame
23*/
[127]24void Display::process(cv::Mat const& frame)
25{
[133]26 emit doDisplay(frame);
[127]27}
28
29
30
31
32
33
34
35
36
37
Note: See TracBrowser for help on using the repository browser.