Finding some documentation about org.opencv.core.Mat.get

asked 2018-03-26 04:28:53 -0500

alkasel gravatar image

updated 2018-03-26 04:55:59 -0500

Hi all! I've started using OpenCV since just a couple of weeks, and I find it very useful. However, there are some problems with documentation. In particular, I need some additional informations about method

double[]    get(int row, int col)

from Class org.opencv.core.Mat. I've found no documentation about it (e.g. here).

From Eclipse you can discover its code is just

return nGet(nativeObj, row, col);

but there is no way of opening

private static native double[] nGet(long self, int row, int col);

and read its source code. I suppose I should look for the source code here, but I see no Mat class in there, even if there is a Matrix.cpp class, but it contains no nGet method.

Thank you in advice to anyone willing to help.


edit retag flag offensive close merge delete


berak gravatar imageberak ( 2018-03-26 04:34:41 -0500 )edit

Yes, the method is the one you've pointed out.

However, even at the link you've posted, there are no informations useful to understand what the method actually does.

alkasel gravatar imagealkasel ( 2018-03-26 04:38:42 -0500 )edit

it retrieves a pixel at (y,x)

berak gravatar imageberak ( 2018-03-26 04:58:00 -0500 )edit