文件名称:adjgamma
- 所属分类:
- 图形图像处理(光照,映射..)
- 资源属性:
- [Matlab] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- kak****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
图像预处理-图像去噪方面-滤波器-matlab的实现程序,非常清晰- ADJGAMMA- Adjusts image gamma.
function g = adjgamma(im, g)
Arguments:
im - image to be processed.
g - image gamma value.
Values in the range 0-1 enhance contrast of bright
regions, values > 1 enhance contrast in dark
regions.
Peter Kovesi
School of Computer Science & Software Engineering
The University of Western Australia
pk @ csse uwa edu au
http://www.cs.uwa.edu.au/~pk
July 2001
function newim = adjgamma(im, g)
if g <= 0
error( Gamma value must be > 0 )
end
if isa(im, uint8 )
newim = double(im)
else
newim = im
end
rescale range 0-1
newim = newim-min(min(newim))
newim = newim./max(max(newim))
newim = newim.^(1/g) Apply gamma function
function g = adjgamma(im, g)
Arguments:
im - image to be processed.
g - image gamma value.
Values in the range 0-1 enhance contrast of bright
regions, values > 1 enhance contrast in dark
regions.
Peter Kovesi
School of Computer Science & Software Engineering
The University of Western Australia
pk @ csse uwa edu au
http://www.cs.uwa.edu.au/~pk
July 2001
function newim = adjgamma(im, g)
if g <= 0
error( Gamma value must be > 0 )
end
if isa(im, uint8 )
newim = double(im)
else
newim = im
end
rescale range 0-1
newim = newim-min(min(newim))
newim = newim./max(max(newim))
newim = newim.^(1/g) Apply gamma function
(系统自动生成,下载前可以参看下载内容)
下载文件列表
adjgamma.m