✅作者简介:热爱科研的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电子书和数学建模资料