当前位置:网站首页>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]
边栏推荐
- MySQL III Configuration file & log file
- 5种最常见的CEPH失败方案
- [cloud native] establishment of Eureka service registration
- Strange error -- frame detected by contour detection, expansion corrosion, and reversal of opening and closing operation effect
- Example interview -- dongyuhang: harvest love in the club
- 【clickhouse专栏】基础数据类型说明
- 2021-02-12
- 004:aws data Lake solution
- 哈希表的理论讲解
- 5 most common CEPH failure scenarios
猜你喜欢

First NFT platform in dfinity Ecology: impossible thoughts

Ceph性能优化与增强

Tap series article 3 | introduction to Tanzu application platform deployment reference architecture

markdown_图片并排的方案

How to implement Web3.0 and digital fashion?

原始套接字使用

Strange error -- frame detected by contour detection, expansion corrosion, and reversal of opening and closing operation effect

行业分析怎么做

7-13 地下迷宫探索(邻接表)

FPGA基于DE2-115平台的VGA显示
随机推荐
Introduction to on-line circuit simulation and open source electronic hardware design
002: what are the characteristics of the data lake
The Dragon Boat Festival is in good health -- people are becoming more and more important in my heart
MySQL optimized slow log query
7-13 underground maze exploration (adjacency table)
QQ, wechat chat depends on it (socket)?
极速搭建元宇宙画廊 #oncyber.io
MySQL索引常见问题
SAP HANA 错误消息 SYS_XSA authentication failed SQLSTATE - 28000
JVM (III) Virtual machine performance monitoring & fault handling tool
Shen Min, CIO of science and technology innovator Digital China Group: the best practice model is failing, and open source accelerates Distributed Innovation
Periodic pains of cross-border e-commerce? Papaya mobile power as an independent station enabler
SAP HANA 错误消息 SYS_XSA authentication failed SQLSTATE - 28000
电脑启动快捷键一览表
7-5 哲哲打游戏
[preview of the open class of Jishu] arm's strongest MCU core cortex-m85 processor helps the innovation of the Internet of things in an all-round way (there is a lottery)
5种最常见的CEPH失败方案
2022 pole technology communication - the dispute over anmou technology is settled, and the cornerstone of the local semiconductor industry is more stable
C#入门系列(十二) -- 字符串
软件定义存储概览(一篇就够)