Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to create a Mat (1D) with sequential values?

In Matlab following can be done -

Matrix=startVal:endVal; which results in a row vector with first element of startVal, incremented by one each time and last value being endVal.

Is there a similar way to create a 1D Mat in openCV?