当前位置:网站首页>Opencv learning log 30 -- histogram equalization
Opencv learning log 30 -- histogram equalization
2022-07-06 15:43:00 【@Spring sauce】
Preface
This article is mainly about opencv Histogram equalization in image processing algorithm .
One 、 Histogram equalization
// The second question is Histogram equalization
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
float chance[256];
int main()
{
cv::Mat src_color = imread("C://Users//john//Desktop//1.jpg");
//cv::imshow("src_color",src_color);
std::vector<cv::Mat> channels;
cv::split(src_color, channels);
cv::Mat B = channels.at(0);
cv::Mat G = channels.at(1);
cv::Mat R = channels.at(2);
cv::imshow("redFI", R);
cv::imshow("blueFI", B);
cv::imshow("greenFI", G);
cv::imshow("original MatFI", src_color);
equalizeHist(B, B);
equalizeHist(G, G);
equalizeHist(R, R);
cv::imshow("red", R);
cv::imshow("blue", B);
cv::imshow("green", G);
cv::imshow("original Mat", src_color);
waitKey(0);
}
summary
1. The code can run directly , If you don't understand, you can leave a message .
2. Missing material pictures , Follow up, thank you .
边栏推荐
- Accounting regulations and professional ethics [4]
- 12306: mom, don't worry about me getting the ticket any more (1)
- Determine the Photo Position
- China's earthwork equipment market trend report, technical dynamic innovation and market forecast
- Medical colposcope Industry Research Report - market status analysis and development prospect forecast
- 学习记录:TIM—电容按键检测
- Cost accounting [14]
- STM32 learning record: LED light flashes (register version)
- Accounting regulations and professional ethics [3]
- Visual analysis of data related to crawling cat's eye essays "sadness flows upstream into a river" | the most moving film of Guo Jingming's five years
猜你喜欢
Learning record: use stm32f1 watchdog
Borg Maze (BFS+最小生成树)(解题报告)
Learning record: STM32F103 clock system overview working principle
MATLAB综合练习:信号与系统中的应用
csapp shell lab
Visual analysis of data related to crawling cat's eye essays "sadness flows upstream into a river" | the most moving film of Guo Jingming's five years
12306: mom, don't worry about me getting the ticket any more (1)
VS2019初步使用
STM32学习记录:玩转按键控制蜂鸣器和LED
JS --- all basic knowledge of JS (I)
随机推荐
编程到底难在哪里?
JS --- detailed explanation of JS facing objects (VI)
JS --- BOM details of JS (V)
Printing quality inspection and verification system Industry Research Report - market status analysis and development prospect forecast
Es6---es6 content details
Nodejs+vue网上鲜花店销售信息系统express+mysql
1010 things that college students majoring in it must do before graduation
Borg Maze (BFS+最小生成树)(解题报告)
LeetCode#19. Delete the penultimate node of the linked list
JS调用摄像头
STM32学习记录:LED灯闪烁(寄存器版)
学习记录:TIM—基本定时器
Eslint--- error: newline required at end of file but not found (EOL last) solution
Flex --- detailed explanation of flex layout attributes
STM32 learning record: play with keys to control buzzer and led
Truck History
入门C语言基础问答
Research Report on market supply and demand and strategy of Chinese graphic screen printing equipment industry
Accounting regulations and professional ethics [4]
信息安全-安全专业名称|CVE|RCE|POC|VUL|0DAY