Code for modelling visual saliency using the PC/BC-DIM model.
 
 
Go to file
mwspratling 72810fdbd9 1st release July 2011 2023-02-13 13:44:39 +00:00
LICENSE 1st release July 2011 2023-02-13 13:43:39 +00:00
README.md 1st release July 2011 2023-02-13 13:44:39 +00:00
V1_asymmetric_feature_errors.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_bar_and_texture_errors.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_border_attention.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_border_length.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_border_orientation.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_border_spacing.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_border_spacing_luminance.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_border_zhaoping_may.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_change_blindness.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_contour.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_asymmetric1.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_asymmetric2.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_attention.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_category.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_efficiency.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_efficiency_circles.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_efficiency_luminance.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_onset.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_preview.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_spacing.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_symmetry.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_feature_zhaoping_may.m 1st release July 2011 2023-02-13 13:43:39 +00:00
V1_texture_border_errors.m 1st release July 2011 2023-02-13 13:43:39 +00:00
analyse_saliency.m 1st release July 2011 2023-02-13 13:43:39 +00:00
common_param_values.m 1st release July 2011 2023-02-13 13:43:39 +00:00
define_bar.m 1st release July 2011 2023-02-13 13:43:39 +00:00
define_blank_image.m 1st release July 2011 2023-02-13 13:43:39 +00:00
define_circle.m 1st release July 2011 2023-02-13 13:43:39 +00:00
define_curve.m 1st release July 2011 2023-02-13 13:43:39 +00:00
define_ellipse.m 1st release July 2011 2023-02-13 13:43:39 +00:00
draw_bar.m 1st release July 2011 2023-02-13 13:43:39 +00:00
filter_definitions_V1_simple.m 1st release July 2011 2023-02-13 13:43:39 +00:00
gabor2D.m 1st release July 2011 2023-02-13 13:43:39 +00:00
gauss2D.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_border.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_border_alt.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_border_overlayed.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_contour.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_feature_add.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_feature_conj.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_feature_sub.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_popout.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_popout_alt.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_popout_circle_bars.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_popout_circles.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_popout_curves.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_popout_dualdist.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_popout_ellipses.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_popout_overlayed.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_popout_parallel_converged.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_popout_vernier.m 1st release July 2011 2023-02-13 13:43:39 +00:00
image_preview_conj.m 1st release July 2011 2023-02-13 13:43:39 +00:00
initialise_feedback.m 1st release July 2011 2023-02-13 13:43:39 +00:00
maxsubplot.m 1st release July 2011 2023-02-13 13:43:39 +00:00
network_dim_conv.m 1st release July 2011 2023-02-13 13:43:39 +00:00
odd.m 1st release July 2011 2023-02-13 13:43:39 +00:00
perform_V1_saliency_experiment.m 1st release July 2011 2023-02-13 13:43:39 +00:00
plot_error_histogram.m 1st release July 2011 2023-02-13 13:43:39 +00:00
plot_histogram_icons.m 1st release July 2011 2023-02-13 13:43:39 +00:00
plot_saliency_histogram.m 1st release July 2011 2023-02-13 13:43:39 +00:00
preprocess_V1_input.m 1st release July 2011 2023-02-13 13:43:39 +00:00
standard_image_param_values.m 1st release July 2011 2023-02-13 13:43:39 +00:00

README.md

This code implements the simulation results reported in:

M. W. Spratling (2012) Predictive coding as a model of the V1 saliency map hypothesis, Neural Networks, 26:7-28.

Please cite this paper if this code is used in, or to motivate, any publications.


USAGE


This code requires MATLAB and the Image Processing Toolbox. It was tested with MATLAB Version 7.7 (R2008b) and Image Processing Toolbox Version 6.2 (R2008b).

To use this software:

    run matlab 
    cd to the directory containing this code 
    run one of the functions with the name V1_*

Each of the V1_* functions runs one of the experiments reported in the above publication. The following table gives details of which MATLAB function produces each figure in this article.

Simulations will run much faster if you install the MATLAB function convnfft written by Bruno Luong, which is available here: http://www.mathworks.com/matlabcentral/fileexchange/24504-fft-based-convolution

Figure MATLAB Function
3a V1_bar_and_texture_errors
3b V1_texture_border_errors
4a V1_border_orientation
4b V1_border_orientation (uncomment the line beginning: angle_jitter=15)
5a V1_border_spacing
5b V1_border_length
6 V1_border_spacing_luminance
7 V1_border_zhaoping_may
8 V1_feature_efficiency
9a V1_feature_category
9b V1_feature_symmetry
10 V1_feature_efficiency_circles
11 V1_feature_efficiency_luminance
12a V1_feature_asymmetric1
12b V1_feature_asymmetric2
13 V1_asymmetric_feature_errors
14 V1_feature_spacing
15 V1_feature_zhaoping_may
16 V1_feature_onset
17 V1_feature_preview
18 V1_change_blindness
19b V1_border_attention
20 V1_contour
21 V1_feature_attention