iCub-main
Loading...
Searching...
No Matches
imageSplitter.h
Go to the documentation of this file.
1// Copyright (C) 2016 Istituto Italiano di Tecnologia - iCub Facility
2// Author: Alberto Cardellino <alberto.cardellino@iit.it>
3// CopyPolicy: Released under the terms of the GNU GPL v2.0.
4
5#include <iostream>
6#include <string>
7#include <yarp/sig/all.h>
8#include <yarp/os/all.h>
9#include <yarp/os/RFModule.h>
10#include <yarp/os/Network.h>
11#include <yarp/os/Thread.h>
12#include <yarp/sig/Image.h>
13#include <yarp/os/BufferedPort.h>
14
15#ifndef ICUB_TOOLS_IMAGE_SPLITTER_H
16#define ICUB_TOOLS_IMAGE_SPLITTER_H
17
18
19class ImageSplitter: public yarp::os::RFModule
20{
21private:
22 int method; // tmp, just for testing different methods of filling the output images
23 bool horizontal;
24
25 yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> > inputPort;
26 yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> > outLeftPort;
27 yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> > outRightPort;
28
29 int inWidth, inHeight;
30 int outWidth, outHeight;
31
32public:
35 bool configure(yarp::os::ResourceFinder &rf);
36 bool interruptModule();
37 bool close();
38 bool updateModule();
39 double getPeriod();
40};
41
42#endif // ICUB_TOOLS_IMAGE_SPLITTER_H
bool configure(yarp::os::ResourceFinder &rf)