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.
1 | initial version |
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.