Line | |
---|
1 | #include "Outputter.h"
|
---|
2 | #include <iostream>
|
---|
3 | #include <lib3dv-1.2.0/lib3dv/device.h>
|
---|
4 | #include <QMetaType>
|
---|
5 | #include "VislabImageProcessor.h"
|
---|
6 |
|
---|
7 | /*! A more elaborate description of the constructor*/
|
---|
8 | Outputter::Outputter(lib3dv::image::type::types imageType) : VislabImageProcessor("", imageType), output_(0)
|
---|
9 | {
|
---|
10 | }
|
---|
11 |
|
---|
12 | void 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
|
---|
18 | Emit the signal to send the frame
|
---|
19 | */
|
---|
20 | void 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.