when i worked with opencv, i realized something. in some methods in opencv with java API, the method accepts a parameter without returning any values and at running that method, you find the output of the method is presented in the same parameter passed to it. for an example,
Mat mat = new Mat();
while(videoCap.grap()) {
videoCap.retriev(mat);
display(mat);
}
as you see in the code, the method retrieve() returns no values but it somehow process the input parameter and then, that input parameter, after calling retrieve() method, contains different values!
can any one explains how that is possible in java?