|
发表于 2019-3-22 21:10:48
|
显示全部楼层
参考答案
- #include <stdarg.h>
- #include "opencv2/imgcodecs.hpp"
- #include "opencv2/highgui.hpp"
- #include "opencv2/imgproc.hpp"
- #include "opencv2/photo.hpp"
- using namespace std;
- using namespace cv;
- int main( int argc, char** argv )
- {
- Mat image = imread("e:/template/lena.jpg");
- Mat tmp;
- image.convertTo(tmp,CV_32FC3,1.0/255);
- if (tmp.type() == CV_32FC3)
- {
- printf("cv_32fc3");
- }
- else
- {
- }
- waitKey();
- return 0;
- }
复制代码
|
|