✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
⛄ 内容介绍
【图像检测】基于Matlab实现图像显著性检测
⛄ 部分代码
close all
img = imread('wpeppers.jpg');figure;
subplot(1, 4, 1);imagesc(img);title('Original Image');axis off;
[Saliency_Map, Feature_Maps, ICA_Maps, img] = ...
Run_SUN(img, []);
subplot(1, 4, 2);imagesc(img);title('Preprocessed Image');
axis off;
subplot(1, 4, 3);imagesc(Saliency_Map);title('Saliency Map');
axis off;subplot(1, 4, 4);imagesc(mean(Feature_Maps, 3));axis off;
title('Mean Feature Map');
⛄ 运行结果
⛄ 参考文献
[1] Kanan C , Cottrell G . Robust classification of objects, faces, and flowers using natural image statistics[C]// Computer Vision and Pattern Recognition. IEEE, 2010.