【图像分割】基于粒子群、文化、进化策略算法实现化石图像分割附matlab代码

简介: 【图像分割】基于粒子群、文化、进化策略算法实现化石图像分割附matlab代码

 1 内容介绍

Start

Loading Image

Training Using Evolution Strategy Algorithm (Input: Raw Image and Target Histogram Vector)

Goal: To Adjusting the Intensity by Equalizing the Image Histogram

Initialize the Population Size N and Number of Generations

While (number of generations is not reached)

Recombination of Attributes and Variances of Individuals

Mutation of Attributes and Variances

Evaluation of Fitness Function for Individuals

Selection for New and Best Individuals (Best Target Histogram Value)

End While

Apply Best Selected Target Histogram Vector

End of ES

Output: Evolutionary Intensity Adjusted of Target Histogram for Raw Input Image

Training Using Cultural Algorithm (Input: ES Equalized Histogram Image and Threshold Levels Vector)

Goal: To Quantize the Image by Fitting Threshold Level

Initialize the Population Size N and Number of Generations

While (number of generations is not reached)

Fitness Evaluation

Updating Belief Space

Reproduction Operators

Influence and Acceptance Functions

Selecting Best Individuals (Best Threshold Value)

End While

Apply Best Selected Threshold Level Vector

End of CA

Output: Evolutionary Fitted Threshold Level for Input Image

Training Using Simulated Annealing Algorithm (Input: Quantized Image and Filter Matrix)

Goal: To Select Best Edge Filters

Initialize the Population Size N and Number of Generations

While (number of generations is not reached)

Objective Function Evaluation

If Objective Function Decreases

Update the Best Solution for Each Filter Vector

Reduce the Current Temperature

Generate a New Trial Solution and Go to Evaluation Step

Else If Metropolis Criterion Is Meet

Go to Update Step

Else

Go to Reduce Temperature Step

End While

Apply Best Selected Edge Filter

End of SA

Output: Evolutionary Edge Detected Image

Training Using Particle Swarm Optimization + SA (Input: Edge Detected Input Image)

Goal: To Segment the Input Image

Initialize the Population Size N and Number of Generations

While (number of generations is not reached)

Initialized Particles with Random Position and Velocity for PSO

Evaluate the Fitness of Particles for each Pixel and Their Corresponding Distance for PSO

Objective Function Evaluation for SA as Optimizer

Find and update pbest and gbest for PSO

Reduce The Current Temperature for SA

Calculate and Update Velocity and Position for PSO

Generate a New Trial Solution and Go to Evaluation Step for SA

Show gbest the Optimal Solution for PSO

Desirable Temperature Reached for SA

Update the Best Solution Found for Pixel and Distance by PSO+SA

End While

Apply Best Clusters Found on Image to Segment

End of PSOSA

Overlay All Evolutionary Techniques

Output: Evolutionary Segmented Image

End

2 仿真代码

function Culture = AdjustCulture(Culture, spop)

n = numel(spop);

nVar = numel(spop(1).Position);

for i = 1:n

if spop(i).Cost<Culture.Situational.Cost

Culture.Situational = spop(i);

end

for j = 1:nVar

if spop(i).Position(j)<Culture.Normative.Min(j) ...

|| spop(i).Cost<Culture.Normative.L(j)

Culture.Normative.Min(j) = spop(i).Position(j);

Culture.Normative.L(j) = spop(i).Cost;

end

if spop(i).Position(j)>Culture.Normative.Max(j) ...

|| spop(i).Cost<Culture.Normative.U(j)

Culture.Normative.Max(j) = spop(i).Position(j);

Culture.Normative.U(j) = spop(i).Cost;

end

end

end

Culture.Normative.Size = Culture.Normative.Max-Culture.Normative.Min;

end

3 运行结果

image.gif编辑

image.gif编辑

image.gif编辑

image.gif编辑

image.gif编辑

image.gif编辑

4 参考文献

[1]余胜威. 基于FODPSO算法的图像分割及DSP实现[D]. 西南交通大学, 2016.

[2]王建宾. 基于粒子群优化絮体图像分割算法的设计和应用[D]. 华东交通大学.

Mousavi, S. M. H. (2022). Bio-Inspired Fossil Image Segmentation for %% Paleontology. International Journal of Mechatronics, Electrical and %% Computer Technology (IJMEC), 12(45), 5243-5249.

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

部分理论引用网络文献,若有侵权联系博主删除。


相关文章
|
算法 定位技术 计算机视觉
【水下图像增强】基于波长补偿与去雾的水下图像增强研究(Matlab代码实现)
【水下图像增强】基于波长补偿与去雾的水下图像增强研究(Matlab代码实现)
1283 0
|
机器学习/深度学习 算法 机器人
使用哈里斯角Harris和SIFT算法来实现局部特征匹配(Matlab代码实现)
使用哈里斯角Harris和SIFT算法来实现局部特征匹配(Matlab代码实现)
579 8
|
机器学习/深度学习 编解码 算法
基于OFDM技术的水下声学通信多径信道图像传输研究(Matlab代码实现)
基于OFDM技术的水下声学通信多径信道图像传输研究(Matlab代码实现)
521 8
|
机器学习/深度学习 算法 机器人
【水下图像增强融合算法】基于融合的水下图像与视频增强研究(Matlab代码实现)
【水下图像增强融合算法】基于融合的水下图像与视频增强研究(Matlab代码实现)
1022 0
|
数据采集 分布式计算 并行计算
mRMR算法实现特征选择-MATLAB
mRMR算法实现特征选择-MATLAB
611 2
|
存储 编解码 算法
【多光谱滤波器阵列设计的最优球体填充】使用MSFA设计方法进行各种重建算法时,图像质量可以提高至多2 dB,并在光谱相似性方面实现了显著提升(Matlab代码实现)
【多光谱滤波器阵列设计的最优球体填充】使用MSFA设计方法进行各种重建算法时,图像质量可以提高至多2 dB,并在光谱相似性方面实现了显著提升(Matlab代码实现)
453 6
|
传感器 机器学习/深度学习 编解码
MATLAB|主动噪声和振动控制算法——对较大的次级路径变化具有鲁棒性
MATLAB|主动噪声和振动控制算法——对较大的次级路径变化具有鲁棒性
535 3
|
机器学习/深度学习 算法 自动驾驶
基于导向滤波的暗通道去雾算法在灰度与彩色图像可见度复原中的研究(Matlab代码实现)
基于导向滤波的暗通道去雾算法在灰度与彩色图像可见度复原中的研究(Matlab代码实现)
774 8
|
机器学习/深度学习 传感器 算法
【高创新】基于优化的自适应差分导纳算法的改进最大功率点跟踪研究(Matlab代码实现)
【高创新】基于优化的自适应差分导纳算法的改进最大功率点跟踪研究(Matlab代码实现)
489 14
|
机器学习/深度学习 算法 数据可视化
基于MVO多元宇宙优化的DBSCAN聚类算法matlab仿真
本程序基于MATLAB实现MVO优化的DBSCAN聚类算法,通过多元宇宙优化自动搜索最优参数Eps与MinPts,提升聚类精度。对比传统DBSCAN,MVO-DBSCAN有效克服参数依赖问题,适应复杂数据分布,增强鲁棒性,适用于非均匀密度数据集的高效聚类分析。

热门文章

最新文章