✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
Particle Swarm Optimization (PSO) is population based stochastic algorithm to form clusters with the help of fitness functions. PSO clustering algorithm is widely used in pattern recognition methods such as image segmentation where PSO defines less number of clusters compared to conventional clustering approaches. Level Sets image segmentation aided with the clustering gives fast convergence towards the desired boundaries of the object to be segmented. Here in this paper a novel approach of image segmentation using PSO clustering applied to Level sets is been presented where PSO performs better than KFCM by generating more compact clusters and larger inter cluster separation. The proposed method is successfully implemented on the images and results obtained show the effectiveness of the approach.
⛄ 部分代码
%% Fatty Liver Level Recognition Using Particle Swarm optimization (PSO) Image Segmentation and Analysis
% https://ieeexplore.ieee.org/document/9960108
% DOI: 10.1109/ICCKE57176.2022.9960108
% Please cite below:
%% -------------------------------------------------------------------------------
clear;
clc;
close all;
warning('off');
% Loading
img=imread('fat.jpg');
img=im2double(img);
imgtemp=img;
img = histeq(img);
gray=rgb2gray(img);
gray=imadjust(gray);
% Reshaping image to vector
X=gray(:);
%% Starting PSO Segmentation
k = 2; % Number of segments
%-------------------------------------------------
%% Statistics
[Accuracy, Sensitivity, Fmeasure, Precision,...
MCC, Dice, Jaccard, Specitivity] = SegPerformanceMetrics(GT, GTComp);
disp(['Accuracy is : ' num2str(Accuracy) ]);
disp(['Precision is : ' num2str(Precision) ]);
disp(['Recall or Sensitivity is : ' num2str(Sensitivity) ]);
disp(['F-Score or Fmeasure is : ' num2str(Fmeasure) ]);
disp(['Dice is : ' num2str(Dice) ]);
disp(['Jaccard is : ' num2str(Jaccard) ]);
disp(['Specitivity is : ' num2str(Specitivity) ]);
⛄ 运行结果
⛄ 参考文献
Mousavi, Seyed Muhammad Hossein, et al. “Fatty Liver Level Recognition Using Particle Swarm Optimization (PSO) Image Segmentation and Analysis.” 2022 12th International Conference on Computer and Knowledge Engineering (ICCKE), IEEE, 2022, doi:10.1109/iccke57176.2022.9960108.
⛄ Matlab代码关注
❤️部分理论引用网络文献,若有侵权联系博主删除
❤️ 关注我领取海量matlab电子书和数学建模资料
转载:https://blog.csdn.net/matlab_dingdang/article/details/128261522