Retinal Prosthesis Dissertation - Student Home Pages
Retinal Prosthesis Dissertation - Student Home Pages
Retinal Prosthesis Dissertation - Student Home Pages
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
%Essentially tprior was the (t-1) scene<br />
% [w1, w2, w3] = size (tprior);<br />
%fprintf ('tprior is %3.f rows, %3.f columns, %0.f colour planes. \n', w1, w2, w3);<br />
% [z1, z2, z3] = size (receive);<br />
%fprintf ('receive is %3.f rows, %3.f columns, %0.f colour planes\n', z1, z2, z3);<br />
%From "load up the cell array" to here for scene presently at receiver<br />
%ALTER THIS SCENE RECEIVED AT (t-1) {tprior} BY THE CHANGES<br />
NumOfChanges = ka;<br />
for ka = 1: NumOfChanges %Where "NumOfChanges" refers to pixel count<br />
%Setting variables "row" and "col" to their relevant planes<br />
row = checka {ka} (: 5);<br />
col = checka {ka} (: 4);<br />
tprior (row, col, 1:6) = checka {ka};<br />
%checks {ks} = checka {ka};<br />
%sonscene(:,:,:) = [checka{ka}(:,:,1),checka{ka}(:,:,2),checka{ka}(:,:,3)]<br />
%sonscene = checka {ka};<br />
% address = [checka {ka} (: 5); checka {ka} (: 4)];<br />
% fprintf (fid,'%2.f %2.f\n', address);<br />
end<br />
subplot (2, 3, 5)<br />
imshow (tprior (: 1:3)), title ('Tprior with changes');<br />
%figure, imshow (tprior (: 1:3)), title ('Tprior with changes');<br />
%Name of this file is "scan.m", which adds two further planes to an image<br />
%These planes will represent the "Control word" of addressing for a 128<br />
%by 128 test scene for use by AER routing<br />
function [f] = scan (f, m, n);<br />
%SCAN adds further planes<br />
pixelcount = m*n;<br />
%Setting up the yellow plane<br />
%fR = grandfatherscene (: 1);<br />
%fG = grandfatherscene (: 2);<br />
%c = 255 - fR;<br />
%m = 255 - fG;<br />
%grandfatherscene (: 4) = c;<br />
%grandfatherscene (: 5) = m;<br />
for count = 1 :( m*n)<br />
fB = f (: 3);<br />
y = (255-fB);<br />
f (: 6) = y;<br />
count = count+1;<br />
end<br />
%Getting the size of the inputted scene<br />
% [d1, d2, d3] = size (f);<br />
%fprintf ('\nThe rows of this reference scene are %4.f pixels\n', d1);<br />
%fprintf ('The columns of this reference scene are %4.f pixels\n', d2);<br />
%fprintf ('%0.f colour planes exist in this viewed scene\n', d3);<br />
rx = 1;<br />
cy = 1;<br />
rowhigh = rx + m -1;<br />
colhigh = cy + n -1;<br />
137 of 200