当前位置:网站首页>【图像增强】基于Frangi滤波器实现血管图像增强附matlab代码
【图像增强】基于Frangi滤波器实现血管图像增强附matlab代码
2022-07-02 01:09:00 【Matlab科研工作室】
1 简介
针对眼底视网膜图像对比度低,受病变区域边界干扰,很难正确提取血管细节的问题提出了一种基于Frangi滤波器的视网膜血管分割的方法,仿真结果表明上述方法对细小血管的提取表现出良好的效果,具备很强的实用价值.
2 部分代码
function I=imgaussian(I,sigma,siz)% IMGAUSSIAN filters an 1D, 2D color/greyscale or 3D image with an% Gaussian filter. This function uses for filtering IMFILTER or if% compiled the fast mex code imgaussian.c . Instead of using a% multidimensional gaussian kernel, it uses the fact that a Gaussian% filter can be separated in 1D gaussian kernels.%% J=IMGAUSSIAN(I,SIGMA,SIZE)%% inputs,% I: The 1D, 2D greyscale/color, or 3D input image with% data type Single or Double% SIGMA: The sigma used for the Gaussian kernel% SIZE: Kernel size (single value) (default: sigma*6)%% outputs,% J: The gaussian filtered image%% note, compile the code with: mex imgaussian.c -v%% example,% I = im2double(imread('peppers.png'));% figure, imshow(imgaussian(I,10));%% Function is written by D.Kroon University of Twente (September 2009)if(~exist('siz','var')), siz=sigma*6; endif(sigma>0)% Make 1D Gaussian kernelx=-ceil(siz/2):ceil(siz/2);H = exp(-(x.^2/(2*sigma^2)));H = H/sum(H(:));% Filter each dimension with the 1D Gaussian kernels\if(ndims(I)==1)I=imfilter(I,H, 'same' ,'replicate');elseif(ndims(I)==2)Hx=reshape(H,[length(H) 1]);Hy=reshape(H,[1 length(H)]);I=imfilter(imfilter(I,Hx, 'same' ,'replicate'),Hy, 'same' ,'replicate');elseif(ndims(I)==3)if(size(I,3)<4) % Detect if 3D or color imageHx=reshape(H,[length(H) 1]);Hy=reshape(H,[1 length(H)]);for k=1:size(I,3)I(:,:,k)=imfilter(imfilter(I(:,:,k),Hx, 'same' ,'replicate'),Hy, 'same' ,'replicate');endelseHx=reshape(H,[length(H) 1 1]);Hy=reshape(H,[1 length(H) 1]);Hz=reshape(H,[1 1 length(H)]);I=imfilter(imfilter(imfilter(I,Hx, 'same' ,'replicate'),Hy, 'same' ,'replicate'),Hz, 'same' ,'replicate');endelseerror('imgaussian:input','unsupported input dimension');endend
3 仿真结果

4 参考文献
[1]袁盼, 陈以. 基于多尺度Frangi滤波器的视网膜血管分割[J]. 现代信息科技, 2020.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
边栏推荐
- Synthetic watermelon game wechat applet source code / wechat game applet source code
- Powerful calendar wechat applet source code - support the main mode of doing more traffic
- 2023 Lexus ES products have been announced, which makes great progress this time
- 首场“移动云杯”空宣会,期待与开发者一起共创算网新世界!
- Circular statements in shell programming
- Output results of convolution operation with multiple tensors and multiple convolution kernels
- Otaku wallpaper Daquan wechat applet source code - with dynamic wallpaper to support a variety of traffic owners
- Picture puzzle wechat applet source code_ Support multi template production and traffic master
- 2022 safety officer-b certificate examination practice questions simulated examination platform operation
- Global and Chinese market of safety detection systems 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

教你白嫖Amazon rds一年并搭建MySQL云数据库(只需10分钟,真香)

RFID makes the inventory of fixed assets faster and more accurate
![[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login](/img/c1/23be4399119f42d85a7b86fc8a59fc.png)
[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login

Slf4j print abnormal stack information

AIX存储管理之逻辑卷的创建及属性的查看和修改

Friends circle community program source code sharing

【底部弹出-选择器】uniapp Picker组件——底部弹起的滚动选择器

Tensorflow tensor convolution, input and convolution kernel dimension understanding

Upgraded wechat tool applet source code for mobile phone detection - supports a variety of main traffic modes

How do Lenovo computers connect Bluetooth headsets?
随机推荐
[conference resources] the Third International Conference on Automation Science and Engineering in 2022 (jcase 2022)
Part 29 supplement (XXIX) basis of ECMAScript
cookie、session、tooken
【会议资源】2022年第三届自动化科学与工程国际会议(JCASE 2022)
Source code of Qiwei automatic card issuing system
[eight sorts ①] insert sort (direct insert sort, Hill sort)
SAP ui5 beginner tutorial XXI - trial version of custom formatter of SAP ui5
Keepalived introduction and installation
cookie、session、tooken
Schrodinger's Japanese learning applet source code
S32Kxxx bootloader之UDS bootloader
Friends circle community program source code sharing
Excel search and reference function
sso单点登录的实现。
【八大排序③】快速排序(动图演绎Hoare法、挖坑法、前后指针法)
Leetcode skimming: binary tree 02 (middle order traversal of binary tree)
Slf4j print abnormal stack information
CTF daily question day45 sensor
AIX存储管理之卷组的创建(一)
MySQL winter vacation self-study 2022 12 (4)