Chapter 2 Intensity transformations and spatial filtering
Intensity transformation functiondescription
1 imadjust: Adjust image intensity valuesor colormap
Eg: J = imadjust(I,[low_in; high_in],[low_out; high_out],gamma)
2.imcomplement:Complement image
Eg: I2 = imcomplement(I)
3.stretchlim: Find limits to contrast stretch image
Eg: LOW_HIGH = stretchlim(I)
Histogram Processing and Function Plotting
1.imhist: Displayhistogram of image data
Eg: imhist(I)
2.basic function of plotting
axis: Axis scaling and appearance
Eg:axis([xmin xmax ymin ymax])
xlable,ylable
Eg:xlable(‘text string’,’fontsize’,size)
ylable(‘text string’,’fontsize’,size)
title:Add title to current axes
Eg:title(‘title string’)
plot:2-D line plot
Eg : plot(y)
3.histeq: Enhance contrast using histogramequalization
Eg:g=histeq(f)
Spatial filter
1.imfilter: N-D filtering ofmultidimensional images
Eg:g=imfilter(f,w) 需要预定定义滤波器w
2.fspecial: Create predefined 2-D filter
Eg:w=fspecial(‘gaussian’,[r,c],alpha)
3.medfilt2: 2-D median filtering
Eg:g=medfilt2(f)
第二章主要讲解了灰度变换和空间滤波,这里常用的两点是,直方图绘制imhist和空间滤波中的imfilter和滤波器的设计fspecial.滤波器中包括均值滤波器average,高斯滤波器gaussian和高斯拉普拉斯滤波器LoG最为常用,还有中值滤波器medfilt2.