function[notedenom] = accuracyinput(noteimage,dollar5,dollar10,dollar20,dollar50,dollar100,d5deg1,d10deg1,d20deg1,d50deg1,d100deg1,d5deg2,d10deg2,d20deg2,d50deg2,d100deg2,d5deg3,d10deg3,d20deg3,d50deg3,d100deg3,d5deg4,d10deg4,d20deg4,d50deg4,d100deg4,d5deg5,d10deg5,d20deg5,d50deg5,d100deg5,d5deg6,d10deg6,d20deg6,d50deg6,d100deg6,d5deg7,d10deg7,d20deg7,d50deg7,d100deg7,d5deg8,d10deg8,d20deg8,d50deg8,d100deg8,d5deg9,d10deg9,d20deg9,d50deg9,d100deg9,d5deg10,d10deg10,d20deg10,d50deg10,d100deg10)
% This function works with accuracydriver and also identification.m. This function is used to
% setup the inputs and also rotate the templates. The number of rows of inputs can
% be varied to any number of rows. This program will test all combinations
% for the note and output the most likely note

% The first for loop is to set the number of degrees the program will
% perform.
for rotationdegree = 1:5
y = skewtemplates(noteimage,rotationdegree,1);
[row col] = size(y);
for n = 1:row-10
    n
    input(1,:) = y(n,:);
    input(2,:) = y(n+1,:);
    input(3,:) = y(n+2,:);
    input(4,:) = y(n+3,:);
     input(5,:) = y(n+4,:);
     input(6,:) = y(n+5,:);
     input(7,:) = y(n+6,:);
     input(8,:) = y(n+7,:);
     input(9,:) = y(n+8,:);
     input(10,:) = y(n+9,:);
    notedenom(n) = identification(dollar5,dollar10,dollar20,dollar50,dollar100,input,d5deg1,d10deg1,d20deg1,d50deg1,d100deg1,d5deg2,d10deg2,d20deg2,d50deg2,d100deg2,d5deg3,d10deg3,d20deg3,d50deg3,d100deg3,d5deg4,d10deg4,d20deg4,d50deg4,d100deg4,d5deg5,d10deg5,d20deg5,d50deg5,d100deg5,d5deg6,d10deg6,d20deg6,d50deg6,d100deg6,d5deg7,d10deg7,d20deg7,d50deg7,d100deg7,d5deg8,d10deg8,d20deg8,d50deg8,d100deg8,d5deg9,d10deg9,d20deg9,d50deg9,d100deg9,d5deg10,d10deg10,d20deg10,d50deg10,d100deg10);

end
end
