显著性经典工具箱

    显著性比较实用的工具箱,请大家参考:


http://www.vision.caltech.edu/~harel/share/gbvs.php



[Software] Saliency Map Algorithm : MATLAB Source Code

Below is MATLAB code which computes a salience/saliency map for an image or image sequence/video (either Graph-Based Visual Saliency (GBVS) or the standard Itti, Koch, Niebur PAMI 1998 saliency map). See the included readme file for details. I also have a newer, simpler version implementing only the Itti algorithm (see simpsal/readme.txt). Additionally, there is also code to compute a saliency map based on the "Image Signature" as described in this PAMI paper by Xiaodi Hou, Jonathan Harel, and Christof Koch.

Please email me if you have any questions!

Last updated July 24, 2012.

Download:

Please select one of the following to download:

  1. [gbvs.zip]
    This package includes an implementation of the full GBVS algorithm. It also lets you compute an Itti, Koch, Niebur saliency map. It includes a function for computing the ROC score between eye-movements (provided as x,y fixation points) and a saliency map, and a function for displaying a saliency map overlayed on top of an image (as in the screenshot below). 

    Right after you download the zip file, you must change into the gbvs/ directory and run:

    >> gbvs_install 

    You only need to run that the first time. Afterwards, you can generate a saliency map as follows:

    To load an image:

    >> img = imread('samplepics/1.jpg');

    To compute a GBVS map:

    >> map = gbvs(img); % map.master_map contains the actual saliency map 

    To compute an Itti-Koch-Niebur map:

    >> map_itti = ittikochmap(img); % map_itti.master_map contains the actual saliency map 

    And you can visualize the saliency map on top of your image as follows:

    >> show_imgnmap( img , map ); 

    Note: If you install GBVS, make sure you put it in a directory the full path to which does not contain spaces.

  2. <span style="color: blue; font-size: 24px; background-color: yellow;" '="">[simpsal.zip]
    This is a radically simplified version of the code implementing only the Itti algorithm. See simpsal/readme.txt for details. This is useful if you want to edit something minimal for research purposes. This is also the preferred implementation if you are working with video data. More features are included in the GBVS package above. 

    Note 1: if you want the output saliency map to be the same size as the input image, call simpsal like this:

    >> map = simpsal(img);
    >> mapbig = mat2gray(imresize( map , [ size(img,1) size(img,2) ] )); 


    Note 2: If you are looking for a very quick & dirty saliency map, call simpsal with default_fast_param (e.g., simpsal(img,default_fast_param)). 

    The output of simpsal is not identical to that output by the Itti algorithm option from the GBVS package. simpsal is a bit faster and more accurate (in fixation predictions) than the Itti implementation above. Surprisingly, the first one is a more faithful reproduction of the original algorithm (exact mechanism of center surround subtraction and scale parameters and selection). However, they are identical in spirit and structure and vary only slightly in output. Graph-Based Visual Saliency is more accurate than both (see below). 

  3. [signatureSal.zip]
    This package includes an implementation of the Image Signature Saliency algorithm, as described in Xiaodi Hou, Jonathan Harel, Christof Koch: Image Signature: Highlighting Sparse Salient Regions. IEEE Trans. Pattern Anal. Mach. Intell. 34(1): 194-201 (2012) 

    >> map = signatureSal(img);

Note: If you have trouble/run into an error running imshow, imresize, prctile, or mat2gray, try downloadingstupidtools.zip and put the contents in the directory containing the saliency code.

Copyright:

The Itti, Koch, Niebur algorithm is provided for educational use only and for copyright information on that please read this.
The GBVS algorithm can be used for any educational or research purposes, but only if it is fully cited/acknowledged. 

Reference:

  • See the   original paper  by   Jonathan Harel. A   poster  is also available.

    Please cite use of this code as:
    - J. Harel, C. Koch, and P. Perona, "Graph-Based Visual Saliency", Proceedings of Neural Information Processing Systems (NIPS), 2006. [pdf]
    - and/or -
    - J. Harel, A Saliency Implementation in MATLAB: http://www.klab.caltech.edu/~harel/share/gbvs.php
    - or (if appropriate) -
    - X. Hou, J. Harel, and C. Koch, "Image Signature: Highlighting Sparse Salient Regions." IEEE Trans. Pattern Anal. Mach. Intell. 34(1): 194-201 (2012) [pdf]
Feel free to contact me via email with any questions. 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值