1 | initial version |
that'll be somewhat more complicated, that you expected. you can't simply take the address of it, and send it over the wire, this is c++, not C. what i'd propose is:
imencode()
each Mat to jpeg (don't ever send uncompressed megabyte pixel images over the wire !)imdecode()
the jpeg buffers back to cv::Mat
vector<Mat>
from that2 | No.2 Revision |
that'll be somewhat more complicated, that you expected. you can't simply take the address of it, and send it over the wire, this is c++, not C. what i'd propose is:
imencode()
each Mat to jpeg (don't ever send uncompressed megabyte pixel images over the wire vector<uchar> vec
, and send(sock, vec.data(), vec.size())
imdecode()
the jpeg buffers back to cv::Mat
vector<Mat>
from that3 | No.3 Revision |
that'll be somewhat more complicated, that you expected. you can't simply take the address of it, and send it over the wire, this is c++, not C. what i'd propose is:
imencode()
each Mat to jpeg (don't ever send uncompressed megabyte pixel images over the wire vector<uchar> vec
, and send(sock, vec.data(), vec.size())
imdecode()
the jpeg buffers back to cv::Mat
vector<Mat>
from that4 | No.4 Revision |
that'll be somewhat more complicated, that than you expected. you can't simply take the address of it, and send it over the wire, this is c++, not C. what i'd propose is:
imencode()
each Mat to jpeg (don't ever send uncompressed megabyte pixel images over the wire !).vector<uchar> vec
, and send(sock, vec.data(), vec.size())
imdecode()
the jpeg buffers back to cv::Mat
vector<Mat>
from that