小编smh*_*smh的帖子

为什么第一次拨打电话的费用比第二次拨打电话和第三次电话费用要多得多?等等?

这是我基于OpenCV的代码:

int main()
{
    clock_t start, stop;
    Mat img = imread("lena.jpg", IMREAD_GRAYSCALE);
    img.convertTo(img, CV_32F, 1.0);
    float *imgInP = (float *)img.data;    // get the input data point 
    Mat imgOut = Mat::zeros(Size(img.rows, img.cols), CV_32F);   // create output mat
    float *imgOutP = (float *)imgOutP.data;  // get the output data point

    // test several calling of opencv boxFilter
    start = clock();
    //blur(img, imgOut, Size(31, 31));
    boxFilter(img, imgOut, CV_32F, Size(31, 31));
    stop = clock();
    cout << "BoxFilter on OpenCV 1 : " << 1000.0 * …
Run Code Online (Sandbox Code Playgroud)

c++ time opencv function

7
推荐指数
1
解决办法
124
查看次数

标签 统计

c++ ×1

function ×1

opencv ×1

time ×1