Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?