source: pacpussensors/trunk/Vislab/Outputter.cpp

Last change on this file was 142, checked in by ldecherf, 8 years ago

Ajout de la classe outputter et modification d'openCV

File size: 652 bytes
Line 
1#include "Outputter.h"
2#include <iostream>
3#include <lib3dv/device.h>
4#include <QMetaType>
5#include "VislabImageProcessor.h"
6
7/*! A more elaborate description of the constructor*/
8Outputter::Outputter(lib3dv::image::type::types imageType) : VislabImageProcessor("", imageType), output_(0)
9{
10}
11
12void Outputter::setOutput(pacpus::OutputInterface<cv::Mat, pacpus::VislabComponent>* output)
13{
14 output_ = output;
15}
16
17/*! process function from the Outputter class with a cv:Mat parameter
18Emit the signal to send the frame
19*/
20void Outputter::process(cv::Mat const& frame)
21{
22 if (output_ && output_->hasConnection())
23 {
24 output_->send(frame);
25 }
26
27}
28
29
30
31
32
33
34
35
36
37
Note: See TracBrowser for help on using the repository browser.