当前位置:网站首页>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 .
边栏推荐
- Research Report on market supply and demand and strategy of Chinese hospital cleaning chemicals industry
- FSM and I2C experiment report
- China earth moving machinery market trend report, technical dynamic innovation and market forecast
- C语言是低级和高级的分水岭
- ucorelab4
- Research Report on shell heater industry - market status analysis and development prospect forecast
- Cost accounting [15]
- Market trend report, technical innovation and market forecast of lip care products in China and Indonesia
- STM32 learning record: input capture application
- JS --- detailed explanation of JS DOM (IV)
猜你喜欢

信息安全-威胁检测-NAT日志接入威胁检测平台详细设计

ucore lab7

Determine the Photo Position

Learning record: understand systick system timer and write delay function

动态规划前路径问题优化方式

12306: mom, don't worry about me getting the ticket any more (1)

Take you to use wxpy to create your own chat robot (plus wechat interface basic data visualization)

毕业才知道IT专业大学生毕业前必做的1010件事

差分(一维,二维,三维) 蓝桥杯三体攻击

ucorelab3
随机推荐
程序员的你,有哪些炫技的代码写法?
LeetCode#19. Delete the penultimate node of the linked list
China's salt water membrane market trend report, technological innovation and market forecast
Find 3-friendly Integers
Record of brushing questions with force deduction -- complete knapsack problem (I)
Research Report on market supply and demand and strategy of China's earth drilling industry
Borg Maze (BFS+最小生成树)(解题报告)
Determine the Photo Position
力扣刷题记录
数据在内存中的存储&载入内存,让程序运行起来
Cost accounting [23]
洛谷P1102 A-B数对(二分,map,双指针)
Perinatal Software Industry Research Report - market status analysis and development prospect forecast
STM32学习记录:LED灯闪烁(寄存器版)
学习记录:理解 SysTick系统定时器,编写延时函数
用C语言写网页游戏
Research Report of peripheral venous catheter (pivc) industry - market status analysis and development prospect prediction
0 - 1 problème de sac à dos (1)
Research Report on market supply and demand and strategy of China's Medical Automation Industry
STM32如何使用STLINK下载程序:点亮LED跑马灯(库版本)