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; }