zoukankan      html  css  js  c++  java
  • GroundPlaneEstimator.cpp解读

    GroundPlaneEstimator域下的compute函数,就相当于整个cpp的主函数,也体现了整个调用过程,先执行compute_v_disparity_data,再compute_v_disparity_image,最后estimate_ground_plane

    void GroundPlaneEstimator::compute()
    { 
        static int num_iterations = 0;
        static double cumulated_time = 0;
    
        const int num_iterations_for_timing = 50;
        const double start_wall_time = omp_get_wtime();
    
        compute_v_disparity_data();
        compute_v_disparity_image();
        estimate_ground_plane();
    
    
        // timing ---
        cumulated_time += omp_get_wtime() - start_wall_time;
        num_iterations += 1;
    
        if((num_iterations % num_iterations_for_timing) == 0)
        {
            printf("Average GroundPlaneEstimator::compute speed  %.2lf [Hz] (in the last %i iterations)
    ",
                   num_iterations_for_timing / cumulated_time, num_iterations_for_timing );
            cumulated_time = 0;
        }
    
        return;
    }
  • 相关阅读:
    os
    linux常用命令
    css-基础知识
    awk命令详解
    文献综述
    微信JSAPI支付
    SNMP详解
    SNMP进阶
    SNMP协议入门
    SNMP简单网络管理协议
  • 原文地址:https://www.cnblogs.com/ymjyqsx/p/9304554.html
Copyright © 2011-2022 走看看