1 | initial version |
There is no Mat::putColumn()
method.
But be aware that neither of Mat::put()
methods can change the Mat
size - instead they can change values of one or more sequential pixels in the Mat
.
Another note is that MatOfXxx
types are introduced to represent in Java std::vector<Xxx>
from C++ side. It means in particular that MatOfDouble
should be of either 1xN or Nx1 size.
All the MatOfXxx
types have fromArray(Xxx... aX)
and fromList(List<Xxx> lX)
that discard their existing content, allocate a new native buffer of 1xN size and fill it with the provided values.
2 | No.2 Revision |
There is no Mat::putColumn()
method.
But be aware that neither of Mat::put()
methods can change the Mat
size - instead they can change values of one or more sequential pixels in the Mat
.
Another note is that MatOfXxx
types are introduced to represent in Java std::vector<Xxx>
from C++ side. It means in particular that MatOfDouble
should be of either 1xN or Nx1 size.
All the MatOfXxx
types have fromArray(Xxx... aX)
and fromList(List<Xxx> lX)
methods that discard their existing content, allocate a new native buffer of 1xN size and fill it with the provided values.