Ask Your Question

ddantas's profile - activity

2017-12-18 09:15:26 -0600 received badge  Necromancer (source)
2015-05-29 07:09:00 -0600 answered a question Java findHomography transform image point to ground plane point

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);