load demo;
figure;
imshow(demo);

[a, b]=size(demo);
dfpga=zeros(a,b);
for i = 2:a-1
    for j = 2:b-1
        k=(i-2)*(b-2)+j+2;
        if k>206052
           dfpga(i,j)=0;
        else
           dfpga(i,j)=fpga_dout(k);
        end
    end
end

figure;
dfpga1=uint8(dfpga);
imshow(dfpga1);


stem(duut(5,1:100),'r');
hold on
step(numbers(1:100,2),'b')