You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
413 B
Matlab
17 lines
413 B
Matlab
function RFrecon=reconstruct_V1RF(W,shape,sigma)
|
|
[n,m]=size(W);
|
|
LoG=filter_definitions_LGN(sigma);
|
|
|
|
for j=1:n,
|
|
%split weights into on and off channels
|
|
Won=reshape(W(j,1:m/2),shape);
|
|
Woff=reshape(W(j,m/2+1:m),shape);
|
|
|
|
%convolve the ON and OFF weights with the LoG filter
|
|
RFon=conv2(Won,LoG,'same');
|
|
RFoff=conv2(Woff,-LoG,'same');
|
|
|
|
%save reconstructd values
|
|
RFrecon(j,:)=[RFon(:)',-RFoff(:)'];
|
|
end
|