How to integrate java + OpenCv. Please help me!!!

Hi all.
I am researching OpenCV and how to integrate OpenCV with java.
If you have any experience with this problem please help me.
OpenCV + Java . Can i control PTZ of logitech Usb webcam ?
Thanks in advance.
Diego
Edited by: ThuCT on Jun 30, 2009 9:34 PM

A recursive function is simply a function that calls itself sometimes. You have to be careful, because if it always calls itself, you have an "infinite regression" where it never stops calling itself and you get stack overflow. I don't know what recursion has to do with traversing result sets, but I can give you a simple example of a recursive function (statements can't be recursive):
public class ArithmeticFunctions
     static int GreatestDivisor(int i, int j)
          if (j = 0) return i
               else return GreatestDivisor(j, i%j); // this is the recursive part
     }This code will use Euclid's algorithm to quickly find the greatest common divisor of two numbers, i.e. GCD(27, 9) = 9; GCD(9, 6) = 3; GCD(25, 15) = 5
Doug

Similar Messages

Maybe you are looking for