opencv-cvCeil返回不小于参数的最小整数值
#include<opencv2/opencv.hpp> #include<iostream> #include <vector> int main(int argc, char** argv) { std::cout << "cvCeil(3.7) = " << cvCeil(3.7) << std::endl; std::cout << "cvCeil(3.2) = " << cvCeil(3.2) << std::endl; std::cout << "cvCeil(-3.7) = " << cvCeil(-3.7) << std::endl; std::cout << "cvCeil(-3.2) = " << cvCeil(-3.2) << std::endl; //返回不小于参数的最小整数值 cv::waitKey(0); return 0; }