当前位置:网站首页>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 .
边栏推荐
- 0-1 knapsack problem (I)
- mysql导入数据库报错 [Err] 1273 – Unknown collation: ‘utf8mb4_0900_ai_ci’
- JS --- detailed explanation of JS facing objects (VI)
- ucore lab 6
- 基于web的照片数码冲印网站
- ucore lab 6
- SSM框架常用配置文件
- Learning record: how to perform PWM output
- 力扣刷题记录
- Indonesian medical sensor Industry Research Report - market status analysis and development prospect forecast
猜你喜欢

Learning record: Tim - capacitive key detection

TCP的三次握手与四次挥手

JS --- detailed explanation of JS facing objects (VI)

ucore lab 6

Borg Maze (BFS+最小生成树)(解题报告)

7-1 懂的都懂 (20 分)

Stm32 dossiers d'apprentissage: saisie des applications

Matlab comprehensive exercise: application in signal and system

ucore lab7

JS --- BOM details of JS (V)
随机推荐
Flex --- detailed explanation of flex layout attributes
JS --- all knowledge of JS objects and built-in objects (III)
Take you to use wxpy to create your own chat robot (plus wechat interface basic data visualization)
信息安全-威胁检测-flink广播流BroadcastState双流合并应用在过滤安全日志
China earth moving machinery market trend report, technical dynamic innovation and market forecast
0-1背包问题(一)
Learning record: use stm32f1 watchdog
ucore lab 6
初入Redis
Cost accounting [18]
Cost accounting [17]
C语言数组的概念
China's peripheral catheter market trend report, technological innovation and market forecast
Nodejs+vue网上鲜花店销售信息系统express+mysql
洛谷P1102 A-B数对(二分,map,双指针)
JS --- detailed explanation of JS DOM (IV)
Matlab example: two expressions of step function
通俗地理解什么是编程语言
Find 3-friendly Integers
Research Report on pharmaceutical R & D outsourcing service industry - market status analysis and development prospect forecast