博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
high-frequency emphasis filter matlab
阅读量:2443 次
发布时间:2019-05-10

本文共 2295 字,大约阅读时间需要 7 分钟。

In homomorphic filtering we apply a high-pass filter to the log-transformed image. The high-pass filtering step provides us with an opportunity to simultaneously apply other enhancements to the image. Consider a modified version of the high-pass filter  H(u,v) H(u,v) that we used last time.

He(u,v)=α+β H(u,v) He(u,v)=α+β H(u,v)

We added an offset and a scaling factor for the Gaussian high-pass filter. If  α<1 α<1 and  β>1 β>1, this filter will amplify the high-frequency components more than the low-frequency components. This filter is called high-frequency emphasis filter. The resulting image, typically, is sharper and also has better contrast. We choose  α=0.5 α=0.5 and  β=1.5 β=1.5, and formulate the high-frequency emphasis filter.

alpha = 0.5;beta = 1.5;Hemphasis = alpha + beta*H;

Let's compare the original high-pass filter and the high-frequency emphasis filter by looking at their cross-sections.

plot(1:30,H(1,1:30),'r',1:30,Hemphasis(1,1:30),'b','LineWidth',2);grid on;legend('High-pass Filter','High-frequency Emphasis Filter','Location','best');

Now let's apply the filter and look at the result of homomorphic filtering. The image below shows the original (on the left) and the homomorphic filtered (on the right) images together. If you compare the two images you can see that the gradual change in illumination in the left image has been corrected to a large extent in the image on the right.

If = fft2(I, M, N);Iout = real(ifft2(Hemphasis.*If));Iout = Iout(1:size(I,1),1:size(I,2));Ihmf_2 = exp(Iout) - 1;imshowpair(I, Ihmf_2, 'montage')

The non-uniform illumination has largely been corrected. Now let's compare our earlier result of homomorphic filtering with regular high-pass filter (below, left) and the result with high-frequency emphasis filter (below, right). We see that the latter seems to have better non-uniform illumination compensation of the two.

imshowpair(Ihmf, Ihmf_2, 'montage')

Also, looking at these two images side-by-side highlights an interesting effect. In the image on the left there seems to be a bright halo type artifact on the borders. This can be seen more clearly if we increase the contrast by applying histogram equalization on the image on the left using the  function. Note that I am normalizing the image using  before passing it to histeq.

转载地址:http://uxiqb.baihongyu.com/

你可能感兴趣的文章
使用CentOS 8进行初始服务器设置
查看>>
ecmascript v3_节点v12中的新ECMAScript模块简介
查看>>
盖茨比乔布斯_通过盖茨比使用Airtable
查看>>
mern技术栈好处?_如何开始使用MERN堆栈
查看>>
路由器接路由器_路由器之战:到达路由器vsReact路由器
查看>>
rxjs 搜索_如何使用RxJS构建搜索栏
查看>>
如何在Debian 10上安装MariaDB
查看>>
go函数的可变长参数_如何在Go中使用可变参数函数
查看>>
debian 服务器_使用Debian 10进行初始服务器设置
查看>>
joi 参数验证_使用Joi进行节点API架构验证
查看>>
react-notifications-component,一个强大的React Notifications库
查看>>
如何在Debian 10上设置SSH密钥
查看>>
如何在Debian 10上安装Node.js
查看>>
angular4前后端分离_如何在Angular 4+中使用Apollo客户端GraphQL
查看>>
如何在Ubuntu 18.04上安装Apache Kafka
查看>>
如何在Ubuntu 20.04上安装R [快速入门]
查看>>
debian tomcat_如何在Debian 10上安装Apache Tomcat 9
查看>>
如何为Python 3设置Jupyter Notebook
查看>>
docker 容器共享数据_如何在Docker容器之间共享数据
查看>>
express中间件_创建自己的Express.js中间件
查看>>