当前位置:网站首页>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
边栏推荐
- What if the copied code format is confused?
- CMVSS TSD No. 302与49 CFR 571.302测试方法是否一样
- Are the two flame retardant standards of European furniture en 597-1 and en 597-2 the same?
- How to do a good job in project management? Learning these four steps is enough
- Codeworks round 680 div2
- For in / for of / foreach loop
- SAP 物料主数据归档
- Go language: string connection, digital conversion string
- mysql高级特性篇,可以多看看,应付面试
- MATLAB R2022a 安装教程
猜你喜欢

进程间的通信

Iso8191 test is mentioned in as 3744.1. Are the two tests the same?

leetcode - 739. 每日温度

Redis6 entry-level tutorial. There are integration cases. You can directly see the integration cases. It is easy to get started

剑指 Offer 10- II. 青蛙跳台阶问题

MySQL advanced features, you can read more about it and meet the interview

并查集是什么?你还在为其烦恼?其实就是一个连通图的问题,理解起来没有那么困难

Sword finger offer 40 Minimum number of K

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

The interviewer asked four questions and summed up four experiences
随机推荐
Supplement 2: circle returning to origin
Web design and website planning assignment 14 add background music to the video
哪些Apple设备支持这次系统更新?来看你的旧Apple设备支持最新系统吗
[node] NPM part
【clickhouse专栏】新建库角色用户初始化
win10家庭版如何连接远程桌面
马志强:语音识别技术研究进展和应用落地分享丨RTC Dev Meetup
Is it appropriate to apply silicone paint to American Standard UL 790 class a?
Using docker compose to build redis5 cluster
Cron expressions in scheduled tasks
MySQL死锁问题如何解决?背诵版
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面
九九乘法表
What if the copied code format is confused?
经典图论,深度优先和广度优先,拓扑,Prim和Krukal,该来温习啦
你所不知道的console
EN 45545-2T10水平法烟密度检测的注意事项
B+ super tree helps you know the underlying structure of MySQL
Introduction to database system experiment report answer Experiment 6: advanced query of data table
Disk format FAT32, exFAT, NTFS of [software tool]