15 #ifndef VISIONTRANSFER_IMAGETRANSFER_H 16 #define VISIONTRANSFER_IMAGETRANSFER_H 19 #include "visiontransfer/common.h" 20 #include "visiontransfer/imageprotocol.h" 21 #include "visiontransfer/imagepair.h" 87 const char* localAddress,
const char* localService,
int bufferSize = 1000000);
97 void setRawTransferData(
const ImagePair& metaData,
unsigned char* rawData,
98 int secondTileWidth = 0,
int validBytes = 0x7FFFFFFF);
105 void setRawValidBytes(
int validBytes);
117 void setTransferImagePair(
const ImagePair& imagePair);
154 bool receiveImagePair(
ImagePair& imagePair,
bool block =
true);
165 bool receivePartialImagePair(
ImagePair& imagePair,
int& validRows,
bool& complete,
bool block =
false);
183 bool isClientConnected()
const;
200 std::string getClientAddress()
const;
The connection has been closed by the remote host.
Using TCP and acting as communication server.
OperationMode
Supported transfer modes.
Using TCP and acting as communication client.
Class for synchronous transfer of image pairs.
The image pair has been transferred completely.
TransferStatus
The result of a partial image transfer.
A set of two images, which are usually the left camera image and the disparity map.
There is currently no more data that could be transmitted.