1 | initial version |
Vec and Mat are just for small vector/matrix where the size is known at compile time. You could use Point/Point2f/Point3f/Scalar depending on the needed size.
But you should probably used Mat for other size, I've seen nothing in Java doc, maybe because this class are template for the compilation, therefore not binded in Java... Or you can create your templated class in Java for usual size (2x2,3x3,4x4,...).