在OpenCV中矩阵归一化函数normalize()的原理讲解及公式 C++/Python代码实例_独步天秤的博客-优快云博客_c++ 矩阵归一化
Mat dst;
std::cout << image.type() << std::endl;
image.convertTo(image, CV_32F);
std::cout << image.type() << std::endl;
normalize(image, dst, 1.0, 0, NORM_MINMAX);
std::cout << dst.type() << std::endl;
imshow("ͼ�����ݹ�һ��", dst);
// CV_8UC3, CV_32FC3
将0到255归一化到0到1的浮点数,可以显示浮点型的图片。