• 大小: 518KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-10
  • 语言: Matlab
  • 标签: Saliency  Filters  

资源简介

Name: Saliency Filters Reference: Perazzi, Federico, et al. "Saliency filters: Contrast based filtering for salient region detection." Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on. IEEE, 2012. Implemented by Yifeng Zhang Tianjin University, China Note: 1. The result of

资源截图

代码片段和文件信息

% function demo_saliency(numberofsp)
clc;
close all;
addpath ‘./MEX‘
addpath ‘./SLIC‘
% cd(‘D:\documents\saliency\2012_saliency_filters‘);
k=6;
pic=‘C:\\Users\\node08\\Desktop\\sa.png‘;
numberofsp=50;
img  = im2double(imread(pic));

mask_path=strcat(‘./temp/‘pic(length(pic)-9:length(pic)-4));
mask_path=strcat(mask_path‘_‘);    
mask_path=strcat(mask_pathnum2str(numberofsp));
mask_path=strcat(mask_path‘.mat‘);

%% step 1 oversegmentation
if exist(mask_path‘file‘)
    load(mask_path);
else
    sp  = mexGenerateSuperPixel(img numberofsp);
%     save (mask_path ‘sp‘) ;
end
sp = double(sp);
% segToImg(sp+1);
maxsp=max(sp(:));
trya=sp+1;

% the mean color of the sp
meanLabColor=zeros(maxsp+113) ;
meanImg = zeros(size(img)) ;
LabImg=RGB2Lab(img);
% imgLab

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2848  2013-11-13 11:08  SaliencyFilters\demo_saliency.m

     文件       2039  2009-06-08 18:12  SaliencyFilters\Lab2RGB.m

     文件     360054  2012-07-03 21:29  SaliencyFilters\leaf.bmp

     文件       4458  2013-10-14 18:44  SaliencyFilters\MEX\assignment.cpp

     文件      23552  2013-04-01 23:01  SaliencyFilters\MEX\assignment.mexw64

     文件       2174  2012-12-13 19:41  SaliencyFilters\MEX\distribution.cpp

     文件      16384  2013-04-01 23:01  SaliencyFilters\MEX\distribution.mexw64

     文件       2718  2012-07-28 15:56  SaliencyFilters\MEX\filter.cpp

     文件       2397  2012-10-19 00:47  SaliencyFilters\MEX\filter.h

     文件         94  2013-04-01 23:01  SaliencyFilters\MEX\make_all.m

     文件       1610  2012-07-28 15:56  SaliencyFilters\MEX\permutohedral.cpp

     文件      24097  2012-10-19 18:37  SaliencyFilters\MEX\permutohedral.h

     文件       2278  2012-12-13 22:21  SaliencyFilters\MEX\uniqueness.cpp

     文件      16384  2013-04-01 23:01  SaliencyFilters\MEX\uniqueness.mexw64

     文件        866  2013-11-27 18:19  SaliencyFilters\readme.txt

     文件       1881  2009-06-08 18:12  SaliencyFilters\RGB2Lab.m

     文件       1969  2013-10-14 21:18  SaliencyFilters\saliencyFilters.m

     文件        231  2012-07-11 19:37  SaliencyFilters\SLIC\get_centers.m

     文件     387072  2012-07-03 20:50  SaliencyFilters\SLIC\mexGenerateSuperPixel.mexw64

     文件       1196  2012-06-19 19:10  SaliencyFilters\SLIC\segToImg.m

     文件      22670  2013-10-07 10:23  SaliencyFilters\temp\00001_50.mat

     文件      16372  2013-10-07 10:24  SaliencyFilters\temp\00003_50.mat

     文件      30221  2013-10-07 10:24  SaliencyFilters\temp\00011_50.mat

     文件       8921  2013-10-07 11:19  SaliencyFilters\temp\00031_50.mat

     文件       8682  2013-10-07 11:20  SaliencyFilters\temp\00051_50.mat

     文件       6421  2013-04-01 23:02  SaliencyFilters\temp\leaf_50.mat

     文件      55918  2013-11-06 10:18  SaliencyFilters\temp\mt900s_50.mat

     目录          0  2013-10-07 10:21  SaliencyFilters\MEX

     目录          0  2013-10-07 10:21  SaliencyFilters\SLIC

     目录          0  2013-11-06 10:18  SaliencyFilters\temp

............此处省略4个文件信息

评论

共有 条评论