当前位置:网站首页>[image detection] Research on cumulative weighted edge detection method based on gray image, with matlab code
[image detection] Research on cumulative weighted edge detection method based on gray image, with matlab code
2022-07-29 11:00:00 【Matlab scientific research studio】
1 Content introduction
The problem of edge detection based on gray image is studied , The traditional edge detection method is very sensitive to noise , An accumulation weighted edge detection method based on gray image is proposed . This method adopts the method of cumulative weighting , It not only effectively filters out random noise , And the image details are well preserved . Theoretical analysis and simulation results show that , This method has good noise resistance , Isotropy , Good real-time , Good edge retention . Compared with the traditional template method , The edge detection effect of this method is better .
In image segmentation , Edge detection method is the most studied method , It tries to solve the problem of image segmentation by detecting the edges of different regions . Most of the main information of the image exists in the edge of the image , It is mainly manifested in the discontinuity of local features of the image , It is the place where the gray level changes violently in the image , That is, the place where the signal changes strangely . The gray level of the singular signal along the edge changes violently , Generally, the edges are divided into two types: step shape and roof shape . The gray values on both sides of the edge in the step edge have obvious changes ; The middle edge of the roof edge is located at the junction of gray increase and decrease . Mathematically, the derivative of gray scale can be used to describe the change of edge points , To the step edge 、 Find the first order of the roof edge 、 Second derivative . so , For the step edge point, the first derivative of the gray change curve reaches the maximum at the edge point , The second derivative crosses zero at the edge . To the roof like edge point , The first derivative of its gray change curve crosses zero at the edge point , The second derivative reaches its extreme value at the edge . Classic edge detection methods , It is to construct an edge detection operator for a small neighborhood of pixels in the original image . First, the noise in the image is filtered by smoothing , Then perform first-order differential or second-order differential operation , Find the maximum value of the gradient or the zero crossing of the second derivative , Finally, select the appropriate threshold to detect the boundary . For various reasons , Images are often disturbed by random noise . Classical edge detection methods introduce various forms of differential operations , This will inevitably cause extreme sensitivity to noise , Plus sex [1]. Aiming at the problem of low noise resistance of traditional edge detection methods , In this paper, a cumulative weighted edge detection method is proposed . This method has good noise suppression ability , At the same time, it can effectively maintain the edge characteristics of the image . The classical edge detection method is introduced , The cumulative weighted edge detection method and its implementation steps are proposed , The cumulative weighted edge detection method is simulated , And with the traditional Laplace and Sobel Methods are compared , Finally, the advantages of cumulative weighted edge detection method are discussed . The result of performing edge detection is often to detect the noise as an edge , The real edge is not detected due to noise interference . So for noisy images , A good edge detection method should have good noise suppression ability , At the same time, it has complete edge preserving characteristics
2 Simulation code
function Final=img_fusion(LH_out,HL_out,lphaar,hphaar,lphaar2,hphaar2,it2)%LH_output hereit2=1;LL=[];LH=[];HL=[];HH=[];app_img = LH_out; % Initializing the Approximation Image.for i = 1:it2[LL{i}, LH{i} ,HL{i} , HH{i}] = img_decomp(app_img, lphaar, hphaar);app_img = LL{i};endLH_final = LL{it2};for i = it2:-1:1LH_final = [LH_final,LH{i};HL{i},HH{i}];endLH_final=(LH_final-min(min(LH_final)))/(max(max(LH_final)) - min(min(LH_final)));%HL_output hereapp_img = HL_out; % Initializing the Approximation Image.for i = 1:it2[LL{i}, LH{i} ,HL{i} , HH{i}] = img_decomp(app_img, lphaar, hphaar);app_img = LL{i};endHL_final = LL{it2};for i = it2:-1:1HL_final = [HL_final,LH{i};HL{i},HH{i}];endHL_final=(HL_final-min(min(HL_final)))/(max(max(HL_final)) - min(min(HL_final)));Final = img_fuse(LH_final, HL_final);Final = img_recomp(Final, it2, lphaar2, hphaar2);Final=(Final-min(min(Final)))/(max(max(Final)) - min(min(Final)));end
3 Running results

4 reference
[1] Jiao Jingfeng , Xiaohuaitie , Fu Qiang . Accumulation weighted edge detection method based on gray image [J]. Electronic Engineer , 2005, 31(10):4.
About bloggers : Good at intelligent optimization algorithms 、 Neural networks predict 、 signal processing 、 Cellular automata 、 The image processing 、 Path planning 、 UAV and other fields Matlab Simulation , relevant matlab Code problems can be exchanged by private letter .
Some theories cite network literature , If there is infringement, contact the blogger to delete .
边栏推荐
- StarRocks 技术内幕:实时更新与极速查询如何兼得
- AI model risk assessment Part 2: core content
- INVALID_ARGUMENT : Invalid rank for input: modelInput Got: 3 Expected: 4 Please fix either the input
- Survival analysis using rtcga clinical data
- 一文搞懂什么是二叉树(二叉树的种类、遍历方式、定义)
- TCP和UDP
- Spark高效数据分析01、idea开发环境搭建
- 聊聊性能测试环境搭建
- 2.安装MySQL
- matplotlib中文问题
猜你喜欢

std::vector 拷贝、追加、嵌套访问

基于flask写的一个小商城mall项目

Discussion on the application of arcing smart electricity in elderly care institutions

AI模型风险评估 第2部分:核心内容

Getting started with pytoch

Watch the open source summit first | quick view of the sub Forum & Activity agenda on July 29

QT工程基本构建

leetcode-位运算

8. Interleave - understand ThreadPoolExecutor thread pool from architecture design to practice

Detailed arrangement of JVM knowledge points (long text warning)
随机推荐
QWidget、QDialog、QMainWindow 的异同点
Spark高效数据分析01、idea开发环境搭建
Factoextra: visualization of multivariate statistics
Why should kubernetes be used in development environments
DoD 和 DoR,消减「认知偏差」的两大神器
IPV6基础
Matplotlib Chinese question
Factoextra: visual PCA of multivariate statistical methods
golang 实现文件上传下载
【图像检测】基于灰度图像的积累加权边缘检测方法研究附matlab代码
Basic. Blocking
Self collection online computer wallpaper PHP source code v2.0 adaptive end
如何开始为您的 Kubernetes 应用程序编写 Helm 图表
The 2022 open atom global open source summit opened in Beijing
TCP和UDP
Hugo NexT V4 介绍
How to synchronize when the primary and sub warehouses are modified?
为什么应该在开发环境中使用 Kubernetes
基本.分块
Leetcode bit operation