直方图均衡化
来源:互联网 发布:星巢网络c5 编辑:程序博客网 时间:2024/06/05 23:23
max = 255
min = 0
void HistogramDrawDlg::HistogramAvge(){ if(m_himageDib.m_nBitCount != 8) return ; if(m_pImgDataOut != NULL){ delete [] m_pImgDataOut ;m_pImgDataOut = NULL ; } if(m_lpColorTableOut != NULL){ delete []m_lpColorTableOut ; m_lpColorTableOut = NULL ; } m_nBitCountOut = m_himageDib.m_nBitCount ; m_nColorTableLengthOut = m_himageDib.ComputeColorTabalLength(m_nBitCountOut) ; if(m_nColorTableLengthOut != 0){ m_lpColorTableOut = new RGBQUAD[m_nColorTableLengthOut] ;memcpy(m_lpColorTableOut , m_himageDib.m_lpColorTable , sizeof(RGBQUAD) * m_nColorTableLengthOut) ; } m_imgWidthOut = m_himageDib.m_imgWidth ; m_imgHeightOut = m_himageDib.m_imgHeight ; int lineBite = (m_imgWidthOut * m_nBitCountOut / 8 + 3) / 4 * 4 ; m_pImgDataOut = new unsigned char[m_imgHeightOut * lineBite] ; int to[256] ; ComputeHistGray() ; double sum = 0 , A = m_imgHeightOut * m_imgWidthOut ; for(int i = 0 ; i < 256 ; i++){ sum += m_histArry[i] ;to[i] = sum * 255 / A + 0.5 ; } for(int i = 0 ; i < m_imgHeightOut ; i++){ for(int j = 0 ; j < m_imgWidthOut ; j++){ *(m_pImgDataOut + i * lineBite + j) = to[*(m_himageDib.m_pImgData + i * lineBite + j)] ; } }}
0 0
- 直方图均衡化、自适应直方图均衡化
- 直方图均衡化推导
- 直方图均衡化
- 直方图均衡化
- 直方图均衡化
- 直方图均衡化
- 灰度直方图均衡化
- 直方图均衡化
- 直方图均衡化
- 直方图均衡化
- matlab直方图均衡化
- 直方图均衡化
- opencv直方图均衡化
- 直方图均衡化原理
- 直方图均衡化
- 直方图均衡化
- 直方图的均衡化
- 直方图均衡化ZT
- 第四章 字符串和多维数组
- Win7+Eclipse+Android+NDK+Cocos2dx
- 关于染化料只能取一种物料,不能取助剂的修复
- 第十六周OJ 项目 Problem C: 相同的数字!
- 把 Nginx 创建为 Windows 的一个服务
- 直方图均衡化
- textarea标签中resize缩放属性的设置
- 9.2.1 使用保存的函数记录
- iOS应用国际化教程
- Hadoop HDFS之SequenceFile和MapFile
- Spring+redis,spring-data-redis使用
- Hive函数大全
- effective c++条款32~40“继承与面向对象设计”整理
- 昆山网络公司:你的网站就是这样被百度抛弃的