当前位置:网站首页>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
边栏推荐
- JS基础-原型原型链和宏任务/微任务/事件机制
- My notes on intelligent charging pile development (II): overview of system hardware circuit design
- pycharm 无法引入自定义包
- CEF download, compile project
- QT setting suspension button
- 2020-08-23
- SCM is now overwhelming, a wide variety, so that developers are overwhelmed
- A lottery like scissors, stone and cloth (C language)
- Liquid crystal display
- Swing transformer details-1
猜你喜欢
My notes on intelligent charging pile development (II): overview of system hardware circuit design
Vgg16 migration learning source code
Swing transformer details-1
Yocto technology sharing phase IV: customize and add software package support
Opencv notes 17 template matching
pycharm 无法引入自定义包
[combinatorics] Introduction to Combinatorics (combinatorial idea 3: upper and lower bound approximation | upper and lower bound approximation example Remsey number)
[untitled] proteus simulation of traffic lights based on 89C51 Single Chip Microcomputer
应用最广泛的8位单片机当然也是初学者们最容易上手学习的单片机
03 FastJson 解决循环引用
随机推荐
Crash工具基本使用及实战分享
Serial port programming
Synchronization control between tasks
要選擇那種語言為單片機編寫程序呢
Application of external interrupts
Toolbutton property settings
Mobile phones are a kind of MCU, but the hardware it uses is not 51 chip
2.Elment Ui 日期选择器 格式化问题
应用最广泛的8位单片机当然也是初学者们最容易上手学习的单片机
2020-08-23
Programming ideas are more important than anything, not more than who can use several functions, but more than the understanding of the program
51 MCU tmod and timer configuration
[Li Kou brush question notes (II)] special skills, module breakthroughs, classification and summary of 45 classic questions, and refinement in continuous consolidation
我想各位朋友都应该知道学习的基本规律就是:从易到难
Basic knowledge of communication interface
Education is a pass and ticket. With it, you can step into a higher-level environment
要选择那种语言为单片机编写程序呢
(2) New methods in the interface
嵌入式系统没有特别明确的定义
Seven sorting of ten thousand words by hand (code + dynamic diagram demonstration)