当前位置:网站首页>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边栏推荐
- Problems encountered when MySQL saves CSV files
- You need to use MySQL in the opening experiment. How can you forget the basic select statement? Remedy is coming~
- Getting started with JMX, MBean, mxbean, mbeanserver
- 01仿B站项目业务架构
- Pymssql controls SQL for Chinese queries
- LeetCode - 508. 出现次数最多的子树元素和 (二叉树的遍历)
- In third tier cities and counties, it is difficult to get 10K after graduation
- 4G module board level control interface designed by charging pile
- 当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学
- Open Euler Kernel Technology Sharing - Issue 1 - kdump Basic Principles, use and Case Introduction
猜你喜欢

Yocto technology sharing phase IV: customize and add software package support

Stm32f407 key interrupt

JS foundation - prototype prototype chain and macro task / micro task / event mechanism

Open Euler Kernel Technology Sharing - Issue 1 - kdump Basic Principles, use and Case Introduction

Assignment to '*' form incompatible pointer type 'linkstack' {aka '*'} problem solving

对于新入行的同学,如果你完全没有接触单片机,建议51单片机入门

在三线城市、在县城,很难毕业就拿到10K

Opencv notes 20 PCA

Swing transformer details-1

Windows下MySQL的安装和删除
随机推荐
使用sed替换文件夹下文件
Openeuler kernel technology sharing - Issue 1 - kdump basic principle, use and case introduction
Retinaface: single stage dense face localization in the wild
Interruption system of 51 single chip microcomputer
嵌入式本来就很坑,相对于互联网来说那个坑多得简直是难走
01仿B站项目业务架构
Assignment to '*' form incompatible pointer type 'linkstack' {aka '*'} problem solving
Opencv note 21 frequency domain filtering
Qcombox style settings
使用密钥对的形式连接阿里云服务器
Embedded systems are inherently flawed. Compared with the Internet, there are so many holes that it is simply difficult to walk away from
03 fastjason solves circular references
Emballage automatique et déballage compris? Quel est le principe?
When the reference is assigned to auto
Simulate mouse click
Wireshark use
Positive and negative sample division and architecture understanding in image classification and target detection
Tensorflow2.0 save model
[untitled] proteus simulation of traffic lights based on 89C51 Single Chip Microcomputer
Liquid crystal display