fastcom
1.0
Communication between applications made easy
|
Specialized Publisher to publish images to subscribers. More...
#include <ImagePublisher.h>
Public Member Functions | |
ImagePublisher (int _port) | |
void | publish (cv::Mat &_image, int _compression=50) |
Specialized Publisher to publish images to subscribers.
fastcom::ImagePublisher::ImagePublisher | ( | int | _port | ) |
Basic constructor. It binds to an specific port and sends information to subscriber.
_port | ports to be binded. |
void fastcom::ImagePublisher::publish | ( | cv::Mat & | _image, |
int | _compression = 50 |
||
) |
Publish an image to the subscribers.
_image | image to be published. |
_compression | JPG compression rate. |