1 | initial version |
something like:
Mat m = ...
byte pixels[] = new byte[m.total() * m.elemSize()];
m.get(0,0, pixels);
// do your operation
m.put(0,0, pixels);
2 | No.2 Revision |
something like:
Mat m = ...
byte pixels[] = new byte[m.total() * m.elemSize()];
m.get(0,0, pixels);
pixels); // copy to array
// do your operation
m.put(0,0, pixels);
pixels); // copy to mat
3 | No.3 Revision |
something like:
Mat m = ...
byte pixels[] = new byte[m.total() * m.elemSize()];
m.channels()];
m.get(0,0, pixels); // copy to array
// do your operation
m.put(0,0, pixels); // copy to mat