文件名称:zhifangtujunhenghua
介绍说明--下载内容均来自于网络,请自行研究使用
函数功能,对图像进行直方图均衡
直接读图像Img10_1.bmp,读到tu中
graydis是原始直方图各灰度级像素个数
原始直方图graydispro,利用原始直方图计算原始累计直方图graydispro
t[]计算和原始灰度对应的新的灰度t[],建立映射关系,t坐标代表原始的灰度,t[]代表对应原始坐标的新坐标
new_graydis是统计新直方图各灰度级像素个数
计算新的灰度直方图new_graydispro,利用新的直方图计算新的累计直方图new_graydispro
计算直方图均衡后的新图new_tu-Function of images directly read the image histogram equalization Img10_1.bmp, read tu in graydis is the original pixel gray level histogram of the number of original histogram graydispro, using the original histogram calculation of the cumulative histogram of the original graydisprot [] calculated and the original gray-scale corresponds to the new gray t [], the establishment of mapping relations, t coordinates of the representative of the original gray-scale, t [] on behalf of the original coordinates of the corresponding new coordinates new new_graydis statistical gray level histogram of the pixel number calculation new histogram new_graydispro, using the new calculation of the new cumulative histogram histogram histogram equalization calculation new_graydispro new plan after new_tu
直接读图像Img10_1.bmp,读到tu中
graydis是原始直方图各灰度级像素个数
原始直方图graydispro,利用原始直方图计算原始累计直方图graydispro
t[]计算和原始灰度对应的新的灰度t[],建立映射关系,t坐标代表原始的灰度,t[]代表对应原始坐标的新坐标
new_graydis是统计新直方图各灰度级像素个数
计算新的灰度直方图new_graydispro,利用新的直方图计算新的累计直方图new_graydispro
计算直方图均衡后的新图new_tu-Function of images directly read the image histogram equalization Img10_1.bmp, read tu in graydis is the original pixel gray level histogram of the number of original histogram graydispro, using the original histogram calculation of the cumulative histogram of the original graydisprot [] calculated and the original gray-scale corresponds to the new gray t [], the establishment of mapping relations, t coordinates of the representative of the original gray-scale, t [] on behalf of the original coordinates of the corresponding new coordinates new new_graydis statistical gray level histogram of the pixel number calculation new histogram new_graydispro, using the new calculation of the new cumulative histogram histogram histogram equalization calculation new_graydispro new plan after new_tu
(系统自动生成,下载前可以参看下载内容)
下载文件列表
直方图均衡化处理.doc