幂次变换的应用 ★ 4 /956 a 例3.1用幂次变换 e d FIGURE 3.8 (a)Magnetic 进行对比度增强 resonance (MR) image of a fractured human spine. (b)-(d)Results of c=1,=0.6,0.4,0.3 applying the transformation in Eq.(3.2-3)with c 1 and y=0.6,0.4.and 0.3,respectively. (Original image for this example courtesy of Dr. David R.Pickens. 原图 0.6 Department of Radiology and Radiological Sciences. Vanderbilt University Medical Center.) 0.4 0.3
例3.1 用幂次变换 进行对比度增强 𝛾𝛾 c=1, =0.6,0.4,0.3 原图 像 0.6 0.4 0.3 幂次变换的应用
幂次变换的应用 4 “冲淡”效果图 956 b cd FIGURE 3.9 (a)Aerial image. (b)-(d)Results of applying the transformation in Eq.(3.2-3)with c 1 and y=3.0.4.0.and 5.0,respectively. (Original image for this example courtesy of NASA.) 原图像 c=1,=3.0,4.0,5.0
原图像 3.0 4.0 5.0 𝛾𝛾 c=1, =3.0,4.0,5.0 幂次变换的应用 “冲淡”效果图
④分段线性变换函数 4 其形式可以任意组合,有些重要的变换可以应用分段线性 函数描述 1、对比拉伸:扩展图 (r2,s2) 3L4 像处理时灰度级的 L -Tr 动态范围。 L/A L/4L23L/4L-1 Input gray level.r (a)变换函数的形式 (b)低对比度图像 (c)对比度拉伸的结果 (d)门限化的结果
④分段线性变换函数 其形式可以任意组合,有些重要的变换可以应用分段线性 函数描述. (a)变换函数的形式 (b)低对比度图像 (c)对比度拉伸的结果 (d)门限化的结果 (a) (b) (c) (d) 1、对比拉伸 :扩展图 像处理时灰度级的 动态范围
④分段线性变换函数 4 特点:突出目标的轮廓,消除背景细节 /956 L- 特点:突出目标的轮廓,保留背景细节 2、灰度切割:提高 特定灰度范围的 亮度 -T(r) (a)加亮[A,B]范围,其他 灰度减小为一恒定值 (a) A (6)y (b)加亮[A,B]范围,其他 灰度级不变 (c)原图像 (d)使用(a)变换的结果 (d) 例3.3
2、灰度切割:提高 特定灰度范围的 亮度 (a)加亮[A,B]范围,其他 灰度减小为一恒定值 (b)加亮[A,B]范围,其他 灰度级不变 (c)原图像 (d)使用(a)变换的结果 (a) (b) (c) (d) ④分段线性变换函数 特点:突出目标的轮廓,消除背景细节 特点:突出目标的轮廓,保留背景细节 例3.3
MATLAB例子:线性变换 4 I=imread('pout.tif'); J1=uint8(pout2); /956 pout=double(I); g(x,y)=af(x,y)+b A=0.5;B=50; J2=uint8(pout3); 255 pout2=pout*A+B;subplot(1,3,1),imshow(I); A=1.5,B=50: subplot(1,3,2),imshow(J1); pout3=pout*A+B;subplot(1,3,3),imshow(J2); 改变A,B的数值,观察图像的灰度变化 f(x,y) g(x,y)=0.5f(x,y)+50 g(x,y)=1.5f(x,y)+50
MATLAB 例子:线性变换 I=imread('pout.tif'); pout=double(I); A=0.5; B=50; pout2=pout*A+B; A=1.5,B=50; pout3=pout*A+B; 改变A,B的数值,观察图像的灰度变化 J1=uint8(pout2); J2=uint8(pout3); subplot(1,3,1),imshow(I); subplot(1,3,2),imshow(J1); subplot(1,3,3),imshow(J2); 𝑎𝑎 = 1 255 255 𝑎𝑎 < 1 𝑎𝑎 > 1 𝑏𝑏 = 0 f(x,y) 𝑔𝑔(𝑥𝑥, 𝑦𝑦) = 𝑎𝑎𝑎𝑎(𝑥𝑥, 𝑦𝑦) + 𝑏𝑏 𝑓𝑓(𝑥𝑥, 𝑦𝑦) 𝑔𝑔(𝑥𝑥, 𝑦𝑦) = 0.5𝑓𝑓(𝑥𝑥, 𝑦𝑦) + 50 𝑔𝑔(𝑥𝑥, 𝑦𝑦) = 1.5𝑓𝑓(𝑥𝑥, 𝑦𝑦) + 50