OpenCV RNG and seeding
Hi everyone
I am trying to convert these lines of Matlab code to Java using OpenCV 3.1:
for i=1:1:height // height = 196 rng(signatureShift(i)); // 196x1 Mat containing int values from 0 to 10 keySequence(i,:)=rand(1,width); // generates double values between 0 and 1 keySequence(i,:)=round(keySequence(i,:)); // rounds the generated double values
Can someone give me some pointers on how to accomplish this using the OpenCV library?
I see I should probably use RNG rng(signatureShift(i)) to seed. What imports do I need in Java OpenCV 3.1 for the RNG class, because I can't seem to find it :(