当前位置:网站首页>Matlab learning 9- nonlinear sharpening filter for image processing
Matlab learning 9- nonlinear sharpening filter for image processing
2022-06-11 08:50:00 【CHengYuP】
Tips : When the article is finished , Directories can be generated automatically , How to generate it, please refer to the help document on the right
List of articles
Preface
Spatial filtering enhancement
- Convolution principle
- Multidimensional continuous convolution
- Linear smoothing filtering
- Domain average method 、 Selective averaging 、Wiener wave filtering
- Nonlinear smoothing filtering
- median filtering
- Linear sharpening filter
- Laplacian operator
- Nonlinear sharpening filter
- Prewitt operator
- Sobel operator
- Log operator
Matlab Study 9- Nonlinear sharpening filter for image processing
Prewitt operator 、Sobel operator 、Log operator
One 、Prewitt operator
effect 
Code
% prewitt operator
img=imread("img/lena.bmp");
subplot(3,2,2),imshow(img),xlabel(" original image ");
MaskPrewittV=fspecial("prewitt");
MaskPrewittH=MaskPrewittV';
KB1=filter2(MaskPrewittH,img);
subplot(3,2,4),imshow(uint8(KB1)),xlabel(" Horizontal template filter image ");
subplot(3,2,5),imshow(uint8(double(img)+KB1)),xlabel(" Horizontal template filtering addition superimposed image ");
subplot(3,2,6),imshow(uint8(double(img)-KB1)),xlabel(" Horizontal template filtering subtraction superimposed image ");
Two 、Sobel operator
effect 
Code
% sobel operator
img=imread("img/liftingbody.png");
subplot(3,3,2),imshow(img),xlabel(" original image ");
MaskPrewittV=fspecial("sobel");
MaskPrewittH=MaskPrewittV';
KB1=filter2(MaskPrewittH,img);
subplot(3,3,4),imshow(uint8(KB1)),xlabel(" Horizontal template filter image ");
subplot(3,3,5),imshow(uint8(double(img)+KB1)),xlabel(" Horizontal template filtering addition superimposed image ");
subplot(3,3,6),imshow(uint8(double(img)-KB1)),xlabel(" Horizontal template filtering subtraction superimposed image ");
KB2=filter2(MaskPrewittV,img);
subplot(3,3,7),imshow(uint8(KB2)),xlabel(" Vertical template filter image ");
subplot(3,3,8),imshow(uint8(double(img)+KB2)),xlabel(" Vertical template filtering addition superimposed image ");
subplot(3,3,9),imshow(uint8(double(img)-KB2)),xlabel(" Vertical template filtering subtraction superimposed image ");
3、 ... and 、Log operator
effect 
Code
% log operator
img=imread("img/liftingbody.png");
subplot(2,2,1),imshow(img),xlabel(" original image ");
MaskLog=fspecial("log");
KB=filter2(MaskLog,img);
subplot(2,2,2),imshow(uint8(KB)),xlabel("LOG Operator filtered image ");
subplot(2,2,3),imshow(uint8(double(img)+KB)),xlabel(" Filter add overlay image ");
subplot(2,2,4),imshow(uint8(double(img)-KB)),xlabel(" Filter subtraction superimposed image ");
Click to get the source code
https://gitee.com/CYFreud/matlab/tree/master/image_processing/demo9_220502
边栏推荐
- 二、渲染 Camera 的数据
- Standardized compilation knowledge
- Usage and difference between map and set in JS
- Screening frog log file analyzer Chinese version installation tutorial
- 剑指 Offer 10- II. 青蛙跳台阶问题
- 欧洲家具EN 597-1 跟EN 597-2两个阻燃标准一样吗?
- c语言打印心形
- 并查集是什么?你还在为其烦恼?其实就是一个连通图的问题,理解起来没有那么困难
- 面试官问了四个问题,总结了4个经验
- leetcode - 739. Daily temperature
猜你喜欢

Screaming Frog Log File Analyser 中文版安装教程

redis6 入门级教程,有整合案例,可以直接看整合案例,简单入门,直接上手

leetcode - 230. 二叉搜索树中第K小的元素

指定环境下安装Jupyter

Web design and website planning assignment 13 making video playlists

How to do a good job in project management? Learning these four steps is enough

go for it Easily manage all types of items with "flying items"

经典图论,深度优先和广度优先,拓扑,Prim和Krukal,该来温习啦

Sword finger offer 62 The last remaining number in the circle

Introduction to database system experiment report answer Experiment 6: advanced query of data table
随机推荐
SAP ODATA 开发教程
TextView文本大小自动适配与TextView边距的去除
How to apply for BS 476-7 sample for display? Is it the same as the display
Award winning survey | how Apache pulsar lived in 2022, you the final say
Sword finger offer 40 Minimum number of K
Redis6 entry-level tutorial. There are integration cases. You can directly see the integration cases. It is easy to get started
Installation (detailed illustration) and use of SVN
LiveData 与 StateFlow,我该用哪个?
[cvpr2022] intensive reading of querydet papers
MySQL死锁问题如何解决?背诵版
C语言打印菱形
Using flying items to manage by objectives, not being a "headless fly" in the workplace
Hibernate L2 cache
Is the result too different from the goal? With the help of target management, you can reach the target accurately!
win10家庭版如何连接远程桌面
Supplement 2: circle returning to origin
leetcode - 460. LFU 缓存
驱动壳美国测试UL 2043 符合要求有哪些?
Getting started with Zipkin
Zookepper===> animal management system