What is the function of LOOP in this OpenCV C for next statement?

asked 2013-10-18 09:31:38 -0500

joeish80829 gravatar image

updated 2013-10-18 15:54:04 -0500

berak gravatar image

I got the code below from this link http://stackoverflow.com/questions/13009951/how-to-use-ipp7-1-opencv-2-4-1

  int NumUploadedFunction = cvUseOptimized(1);
    t1 = (double)cvGetTickCount();
    for (int j=0;j<LOOP;j++)
        cvMatchTemplate(image_ncc, template_image, result_ncc, CV_TM_CCORR_NORMED);
    t2 = (double)cvGetTickCount();
    timeCalc=(t2-t1)/((double)cvGetTickFrequency()*1000. * 1000.0);
    cout << " OpenCV matchtemplate using cross-correlation 
   Valid: " << timeCalc << endl;

I looked around on google for answers but couldnt find any ...If someone could post a link where i could learn of this loop function or is it just a variable that the person asking the question neglected to add.

and 1 more thing in this line of above code

 timeCalc=(t2-t1)/((double)cvGetTickFrequency()*1000. * 1000.0

what is this part doing *1000.

does *1000. equal *1000.0 or is the period on the end of *1000. some operator i haven't heard about.

edit retag flag offensive close merge delete