当前位置:网站首页>23. histogram equalization
23. histogram equalization
2022-06-26 01:36:00 【Nightmare satiety】
#include <opencv4/opencv2/opencv.hpp>
#include <iostream>
int main(int argc, char** argv){
cv::Mat src = cv::imread("/home/long2double/Desktop/OpenCV_Study/source/lena.png");
if(src.empty()){
std::cout << "could not load image ...." << std::endl;
return -1;
}
cv::namedWindow("test opencv setup");
cv::imshow("test opencv setup", src);
cv::cvtColor(src, src, cv::COLOR_BGR2GRAY);
cv::Mat dst;
cv::equalizeHist(src, dst);
cv::imshow("dst", dst);
cv::waitKey();
}
边栏推荐
- Idempotence of interfaces -- talk about idempotence of interfaces in detail, that is, solutions
- 15 `bs对象.节点名称.节点名称.string` 获取嵌套节点内容
- 经纬度 多点 获取中心点 已解决
- I2C protocol
- 2021-1-15 摸鱼做的笔记Ctrl+c /v来的
- Black box test - decision table method of test cases
- 2022资料员-通用基础(资料员)考试模拟100题及在线模拟考试
- Data analysis slicer, PivotTable and PivotChart (necessary in the workplace)
- 新库上线 | CnOpenData农产品批发价格数据
- Recognize map
猜你喜欢
QT cmake pure C code calls the system console to input scanf and Chinese output garbled code
数组中的第K个最大元素
Shengxin weekly issue 34
The overall process of adding, deleting, modifying and querying function items realized by super detailed SSM framework
Web信息收集,互联网上的裸奔者
Development and monitoring of fusion experiment pulse power supply by LabVIEW
I2C protocol
图文大师印章简易制作
黑盒测试 — 测试用例 之 判定表法看这一篇就够了
FIFO code implemented in C language
随机推荐
Laravel基础课 路由和MVC——控制器
idea配置
【Visual Studio Code】vscode快捷键大全
**MySQL example 1 (query by multiple conditions according to different problems)**
Region of Halcon: generation of multiple regions (4)
使用Gin框架运行Demo时报错“ listen tcp :8080: bind: An attempt was made to access a socket in a way forbidden”
2022 explosion proof electrical operation certificate examination question bank and simulation examination
Flex & Bison 开始
“热帖”统计
2022防爆电气操作证考试题库及模拟考试
Reading notes on how to connect the network - hubs, routers and routers (III)
图文大师印章简易制作
--SQL of urban cultivation manual -- Chapter 1 basic review
leetcode 300. Longest Increasing Subsequence 最长递增子序列 (中等)
生信周刊第34期
The kth largest element in the array
数字电路——加法器
《产品思维30讲》精华及感想
[visual studio code] vscode shortcut keys
LabVIEW开发监控聚变实验脉冲电源