当前位置:网站首页>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();
}

边栏推荐
- 填鸭数据即时收集解决方案资源
- Duck feeding data instant collection solution resources
- [Excel知识技能] Excel数据类型
- 2022资料员-通用基础(资料员)考试模拟100题及在线模拟考试
- Using redis database as cache in Django
- 2021-1-15 摸魚做的筆記Ctrl+c /v來的
- **MySQL例题一(根据不同问题,多条件查询)**
- Nacos registry
- Musk vs. jobs, who is the greatest entrepreneur in the 21st century
- containerd客户端比较
猜你喜欢
随机推荐
Data analysis slicer, PivotTable and PivotChart (necessary in the workplace)
Shell regular expression
Have you considered going or staying in graduation season
What is the process of opening a mobile card account? Is it safe to open an account online?
leetcode 300. Longest Increasing Subsequence 最长递增子序列 (中等)
MySQL例题一 综合案例(多条件组合查询)
When you run the demo using the gin framework, there is an error "listen TCP: 8080: bind: an attempt was made to access a socket in a way forbidden"
马斯克 VS 乔布斯,谁是21世纪最伟大的创业家
Redis之Strings命令
新库上线 | CnOpenDataA股上市公司IPO申报发行文本数据
通过电脑获取WIFI密码(只能连接过的WiFi)
15 `bs对象.节点名称.节点名称.string` 获取嵌套节点内容
Tools - API document generation tool
JSON basic syntax
Region of Halcon: generation of multiple regions (4)
Digital circuit - adder
MOS管防倒灌电路设计及其过程分析
Native DOM vs. virtual DOM
**MySQL例题一(根据不同问题,多条件查询)**
--SQL of urban cultivation manual -- Chapter 1 basic review









