Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Not sure if there's a single function to do it but you have access to the following variables in cv::Mat

data (raw data) rows cols elem_size (size in byte of each element)

So rowscolselem_size should give you to the total bytes to send.

Not sure if there's a single function to do it but you have access to the following variables in cv::Mat

  • data (raw data) rows cols data)
  • rows, cols
  • elem_size (size in byte of each element)

So rowscolselem_size should give you to the total bytes to send.

Not sure if there's a single function to do it but you have access to the following variables in cv::Mat

  • data (raw data)
  • rows, cols
  • elem_size (size in byte of each element)

So rowscolsrows * cols * elem_size should give you to the total bytes to send.