当前位置:网站首页>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 .
边栏推荐
- Cost accounting [14]
- Market trend report, technical innovation and market forecast of Chinese hospital respiratory humidification equipment
- Cost accounting [13]
- 想应聘程序员,您的简历就该这样写【精华总结】
- Flex --- detailed explanation of flex layout attributes
- E. Breaking the Wall
- Learning record: USART serial communication
- 力扣刷题记录--完全背包问题(一)
- F - Birthday Cake(山东省赛)
- Market trend report, technological innovation and market forecast of pneumonia drugs obtained by Chinese hospitals
猜你喜欢

MATLAB综合练习:信号与系统中的应用

C语言是低级和高级的分水岭

ucorelab4

Eslint--- error: newline required at end of file but not found (EOL last) solution

Learning record: STM32F103 clock system overview working principle

7-1 懂的都懂 (20 分)

csapp shell lab

Record of force deduction and question brushing

入门C语言基础问答

JS --- detailed explanation of JS DOM (IV)
随机推荐
Cost accounting [20]
Research Report on pharmaceutical R & D outsourcing service industry - market status analysis and development prospect forecast
Flex --- detailed explanation of flex layout attributes
China earth moving machinery market trend report, technical dynamic innovation and market forecast
China medical check valve market trend report, technical dynamic innovation and market forecast
China chart recorder market trend report, technology dynamic innovation and market forecast
Market trend report, technical innovation and market forecast of geosynthetic clay liner in China
Hospital privacy screen Industry Research Report - market status analysis and development prospect forecast
Ball Dropping
Printing quality inspection and verification system Industry Research Report - market status analysis and development prospect forecast
STM32學習記錄:輸入捕獲應用
Unpleasant error typeerror: cannot perform 'ROR_‘ with a dtyped [float64] array and scalar of type [bool]
D - Function(HDU - 6546)女生赛
程序员的你,有哪些炫技的代码写法?
数据在内存中的存储&载入内存,让程序运行起来
C语言学习笔记
Crawler series (9): item+pipeline data storage
MATLAB实例:阶跃函数的两种表达方式
力扣刷题记录
7-1 懂的都懂 (20 分)