1 | initial version |
What's up?
Thanks for the code. It helped me a lot. Let me help you a bit.
Java arrays start with zero, that's why some places appear to be null.
Homog and OutputMat are C native, so you can't read them before converting like this:
double[] java_homog = new double[Homog.cols() * Homog.rows()];
byte[] java_mask = new byte[OutputMat.rows()];
Homog.get(0, 0, java_homog);
OutputMat.get(0, 0, java_mask);