当前位置:网站首页>Opencv histogram equalization
Opencv histogram equalization
2022-07-03 10:04:00 【Σίσυφος one thousand and nine hundred】
One 、 effect
Used to improve image quality
Histogram equalization is an important application of gray transformation , Efficient and easy to implement , It is widely used in image enhancement
Histogram equalization is a method to enhance image contrast by stretching the intensity distribution of pixels .
Two 、equalizeHist
void equalizeHist(
InputArray src,
OutputArray dst)
1、 Read in the picture
2、 Image channel separation
3、 Image histogram equalization
4、 Channel merging
5、 Display the image after image histogram equalization
#if 1 // Color image enhancement algorithm -- Histogram equalization image enhancement
int main(int args, char* arg)
{
Mat src = imread("C:\\Users\\19473\\Desktop\\opencv_images\\88.jpg");
if (!src.data)
{
printf("could not load image....\n");
}
imshow("input_demo", src);
Mat stc_bgr[3];
Mat dst;// Enhanced image
// Remove the channel
split(src, stc_bgr);
for (int i = 0; i < 3; i++)
{
equalizeHist(stc_bgr[i], stc_bgr[i]);
}
// Merge channel
merge(stc_bgr, 3, dst);
imshow(" Enhanced image ", dst);
waitKey(0);
return -1;
}
#endif
边栏推荐
- QT setting suspension button
- (1) 什么是Lambda表达式
- [combinatorics] combinatorial existence theorem (three combinatorial existence theorems | finite poset decomposition theorem | Ramsey theorem | existence theorem of different representative systems |
- (2) New methods in the interface
- Crash工具基本使用及实战分享
- 03 FastJson 解决循环引用
- 单片机现在可谓是铺天盖地,种类繁多,让开发者们应接不暇
- 2021-11-11 standard thread library
- Wireshark use
- Open Euler Kernel Technology Sharing - Issue 1 - kdump Basic Principles, use and Case Introduction
猜你喜欢
Interruption system of 51 single chip microcomputer
yocto 技术分享第四期:自定义增加软件包支持
JS foundation - prototype prototype chain and macro task / micro task / event mechanism
Exception handling of arm
编程思想比任何都重要,不是比谁多会用几个函数而是比程序的理解
LeetCode - 460 LFU 缓存(设计 - 哈希表+双向链表 哈希表+平衡二叉树(TreeSet))*
03 FastJson 解决循环引用
Windows下MySQL的安装和删除
JS基础-原型原型链和宏任务/微任务/事件机制
嵌入式系统没有特别明确的定义
随机推荐
我想各位朋友都应该知道学习的基本规律就是:从易到难
Basic knowledge of MySQL database (an introduction to systematization)
Swing transformer details-1
After clicking the Save button, you can only click it once
Notes on C language learning of migrant workers majoring in electronic information engineering
Leetcode 300 最长上升子序列
LeetCode - 919. 完全二叉树插入器 (数组)
Opencv note 21 frequency domain filtering
一个可执行的二进制文件包含的不仅仅是机器指令
Windows下MySQL的安装和删除
2021-01-03
CEF download, compile project
自动装箱与拆箱了解吗?原理是什么?
Getting started with JMX, MBean, mxbean, mbeanserver
03 FastJson 解决循环引用
QT detection card reader analog keyboard input
My notes on the development of intelligent charging pile (III): overview of the overall design of the system software
Qcombox style settings
使用sed替换文件夹下文件
Yocto Technology Sharing Phase 4: Custom add package support