function [g]= spm_gx_adem_salience(x,v,a,P)
% returns the prediction for visual search (proprioception and vision)
% FORMAT [g]= spm_gx_adem_salience(x,v,a,P)
%
% x    - hidden states:
%   o(1) - oculomotor angle
%   o(2) - oculomotor angle
%
% v    - hidden causes
% P    - parameters
%
% g    - sensations:
%   g(1) - oculomotor angle (proprioception - x)
%   g(2) - oculomotor angle (proprioception - y)
%   g(3) - retinal input - channel 1
%   g(4) - retinal input - channel 2
%   g(5) - ...
% 
% As for spm_dem_reach but with no visual target
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
 
% Karl Friston
% $Id: spm_gx_adem_salience.m 4580 2011-12-02 20:22:19Z karl $
 
% sensory input sampled from image
%--------------------------------------------------------------------------
global STIM
 
% retinotopic sampling
%--------------------------------------------------------------------------
s   = ADEM_sample_image(STIM.V,x,STIM.R);
 
% add proprioceptive angles in intrinsic (polar) coordinates
%--------------------------------------------------------------------------
g   = spm_vec(x,s);
 

spm
github-repos/MATLAB/spm-spm12/spm12-3085dac00ac804adb190a7e82c6ef11866c8af02/toolbox/DEM/spm_gx_adem_salience.m
spm12
github-repos/MATLAB/spm-spm12
3085dac00ac804adb190a7e82c6ef11866c8af02