opencv_16_图像像素类型转换与归一化

coInvert.norm(src); 

void ColorInvert::norm(Mat& image) {
    Mat dst;
    cout << image.type() << endl;
    image.convertTo(image, CV_32F);
    cout << dst.type() << endl;
    normalize(image, dst, 1.0, 0, NORM_MINMAX);
    cout << dst.type() << endl;
    imshow("图像数据归一化", dst);
}

相关推荐

  1. 平面和坐标系

    2024-04-29 06:30:04       36 阅读
  2. 关于图像opencv列关系

    2024-04-29 06:30:04       73 阅读
  3. OpenCV图像值统计

    2024-04-29 06:30:04       42 阅读
  4. 【Tools】理解图像矩阵

    2024-04-29 06:30:04       29 阅读
  5. Transforms转换Tensor数据类型

    2024-04-29 06:30:04       25 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-29 06:30:04       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-29 06:30:04       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-29 06:30:04       87 阅读
  4. Python语言-面向对象

    2024-04-29 06:30:04       96 阅读

热门阅读

  1. golang调用钉钉发送群机器人消息

    2024-04-29 06:30:04       37 阅读
  2. RediSearch:Redis强大的搜索引擎

    2024-04-29 06:30:04       34 阅读
  3. GO语言核心30讲 进阶技术

    2024-04-29 06:30:04       34 阅读
  4. C、C++的联合体:union关键字含义

    2024-04-29 06:30:04       27 阅读
  5. python:map()函数用法

    2024-04-29 06:30:04       30 阅读
  6. docker pull失败:x509: certificate has expired or is not yet

    2024-04-29 06:30:04       30 阅读
  7. electron 数据持久化方案

    2024-04-29 06:30:04       30 阅读
  8. 搜索引擎的发展历史

    2024-04-29 06:30:04       27 阅读