文件名称:adjgamma
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:537byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
图像预处理-图像去噪方面-滤波器-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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.