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

Last change on this file since 139 was 133, checked in by ldecherf, 8 years ago

dsf

File size: 821 bytes
RevLine 
[127]1#include "Display.h"
2#include <iostream>
3#include <lib3dv-1.2.0/lib3dv/device.h>
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.