1 | initial version |
This definitely depends on what you gonna do. If you only want to access 1 or 2 pixels (a small amount) it would be enough to use Mat.get(row, col). If you want to work on the whole Mat, you should use the way you already proposed with getting the Mat and transfering it into an buffer array.
2 | No.2 Revision |
This definitely depends on what you gonna do. If you only want to access 1 or 2 pixels (a small amount) amount), it would be enough to use Mat.get(row, col). If you want to work on the whole Mat, you should use the way you already proposed with getting the Mat and transfering it into an buffer array.