Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Copy Multidimensional Matrix

Let's say I have a nxnx3 matrix and I want to copy that matrix into a nxnx5 matrix (and fill the remaining channels with other stuff). How can this be done in OpenCV? I'm looking for a solution that is not using a for loop.