opencv计算运行时间

double t = (double)cvGetTickCount();
//  算法过程
t = (double)cvGetTickCount() - t;

printf( "run time = %gms\n", t/(cvGetTickFrequency()*1000) );

printf( "run time = %gs\n", t/(cvGetTickFrequency()*1000000) );


你可能感兴趣的:(OpenCV)