opencv-cvFloor返回不大于参数的最大整数值

#include<opencv2/opencv.hpp>
#include<iostream>
#include  <vector>


int main(int argc, char** argv) {

    std::cout << "cvFloor(3.7) = " << cvFloor(3.7) << std::endl;
    std::cout << "cvFloor(3.2) = " << cvFloor(3.2) << std::endl;
    std::cout << "cvFloor(-3.7) = " << cvFloor(-3.7) << std::endl;
    std::cout << "cvFloor(-3.2) = " << cvFloor(-3.2) << std::endl;
    //返回不大于参数的最大整数值
    


    cv::waitKey(0);
    return 0;
}

 

 

posted @ 2022-01-15 09:09  天子骄龙  阅读(36)  评论(0编辑  收藏  举报