Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Matrix to single row


I need to convert a square cv::Mat to a single row. Right now I iterate over its rows and append them horizontally (cv::hconcat) to a separate matrix to get my single row matrix, but is there perhaps a better way?

Best regards, Hans