当前位置:网站首页>CLAHE in opencv for 16 bit image enhancement display
CLAHE in opencv for 16 bit image enhancement display
2022-06-12 10:04:00 【zhoukehu91】
OpenCV in CLAHE be used for 16 Bit image enhancement display
The author currently uses OpenCV Version is 4.1.0, An adaptive histogram equalization algorithm with limited contrast (Contrast Limited Adaptive Histogram Equalization, CLAOpenCV in CLAHE be used for 16 Bit image enhancement display HE) In this version... Is already supported 16 Bit image processing . The author applies it to 16 Bit image conversion 8 Bit image processing ( be used for 16 Enhanced display of bit infrared or visible light images ) And achieved good results , Share the code .
cv::Mat src(HEIGHT,WIDTH,CV_16UC1);
//... load image data to .src
cv::Mat tmp;
cv::Ptr<cv::CLAHE> clahe = createCLAHE(20.0,cv::Size(8,8));
clahe->apply(src,tmp);
double minVal,maxVal;
minMaxIdx(tmp,&minVal,&maxVal);
double scaleVal = (maxVal - minVal) > 1.0 ? (maxVal - minVal) : 1.0; // Avoid exemption 0
tmp -= minVal; // Normalize to [0-255]
tmp.convertTo(dst,CV_8UC1,255.0/scaleVal,0.0);// Normalize to [0-255]
边栏推荐
- UEFI EDKII 编程学习
- Shen Min, CIO of science and technology innovator Digital China Group: the best practice model is failing, and open source accelerates Distributed Innovation
- 1268_FreeRTOS任务上下文切换的实现
- Auto. JS learning note 9: basic methods such as using the script engine, starting the script file with the specified path, and closing
- C # getting started series (12) -- string
- Ceph性能优化与增强
- 行业分析怎么做
- OpenCV中CLAHE用于16位图像增强显示
- UE4_以现成资源探索创建背景场景的方法
- C break continue return
猜你喜欢

Theoretical explanation of hash table

Li Yang, a scientific and technological innovator and CIO of the world's top 500 group: the success of digital transformation depends on people. Decision makers should always focus on "firewood"
![[cloud native | kubernetes] kubernetes networkpolicy](/img/8b/9260fc39d3f595cdc2689a3ab26bd7.png)
[cloud native | kubernetes] kubernetes networkpolicy

一文读懂Dfinity生态中的首个NFT平台:IMPOSSIBLE THINGS

Ceph性能优化与增强

电脑启动快捷键一览表

Clickhouse column basic data type description

005: difference between data lake and data warehouse

How CEPH improves storage performance and storage stability

SAP Hana error message sys_ XSA authentication failed SQLSTATE - 28000
随机推荐
UEFI edkii programming learning
【926. 将字符串翻转到单调递增】
Auto. JS learning note 9: basic methods such as using the script engine, starting the script file with the specified path, and closing
markdown_图片并排的方案
C# break continue return 三者区别
Combat tactics based on CEPH object storage
CEPH performance optimization and enhancement
日本经济泡沫与房价泡沫
5种最常见的CEPH失败方案
MySQL 7 affair
002: what are the characteristics of the data lake
使用Visual Studio 2017创建简单的窗口程序
CentOS 7 installing MySQL 8
MySQL优化之慢日志查询
基于 Ceph 对象存储的实战兵法
004:aws data Lake solution
C语言递归文件夹的代码
优质好书助成长 猿辅导携四大出版社推荐“暑期好书”
UEFI EDKII 编程学习
[cloud native | kubernetes] kubernetes networkpolicy