当前位置:网站首页>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 .
边栏推荐
- LeetCode#237. Delete nodes in the linked list
- TCP的三次握手与四次挥手
- JS --- all basic knowledge of JS (I)
- VS2019初步使用
- JS --- all knowledge of JS objects and built-in objects (III)
- 编程到底难在哪里?
- Record of force deduction and question brushing
- csapp shell lab
- Research Report on shell heater industry - market status analysis and development prospect forecast
- ucore lab5
猜你喜欢

TCP的三次握手与四次挥手

1010 things that college students majoring in it must do before graduation

csapp shell lab

STM32如何使用STLINK下载程序:点亮LED跑马灯(库版本)

Learning record: use STM32 external input interrupt

MATLAB实例:阶跃函数的两种表达方式

STM32 learning record: input capture application

C语言数组的概念
![Unpleasant error typeerror: cannot perform 'ROR_‘ with a dtyped [float64] array and scalar of type [bool]](/img/dc/834463f460c085207dc9d531805e90.jpg)
Unpleasant error typeerror: cannot perform 'ROR_‘ with a dtyped [float64] array and scalar of type [bool]

Es6---es6 content details
随机推荐
LeetCode#412. Fizz Buzz
Research Report on medical anesthesia machine industry - market status analysis and development prospect prediction
China potato slicer market trend report, technical dynamic innovation and market forecast
学习记录:TIM—电容按键检测
D - Function(HDU - 6546)女生赛
C语言是低级和高级的分水岭
C语言必背代码大全
Research Report on market supply and demand and strategy of China's land incineration plant industry
0 - 1 problème de sac à dos (1)
学习记录:TIM—基本定时器
差分(一维,二维,三维) 蓝桥杯三体攻击
China's PCB connector market trend report, technological innovation and market forecast
STM32学习记录:输入捕获应用
通俗地理解什么是编程语言
Research Report on market supply and demand and strategy of Chinese hospital cleaning chemicals industry
HDU-6025-Coprime Sequence(女生赛)
ucorelab4
Cost accounting [19]
Learning record: use stm32f1 watchdog
Interesting drink