Code covered by the BSD License  

Highlights from
Simple DIP demos

image thumbnail
from Simple DIP demos by Tan Chin Luh
Simple DIP demo using MATLAB 6.1, Image Processing Toolbox and NN Toolbox.

simdata(x)
function NNinput = simdata(x) 

pic5 = x;

for cntout = 1:5
    for cnt=1:7
        for cnt2=1:5
            pictemp=sum(pic5((cnt*10-9:cnt*10),(cnt2*10-9:cnt2*10),cntout));
            pictemp2((cnt-1)*5+cnt2)=sum(pictemp);

        end
    end
    pic_NNinput(cntout,:)=pictemp2/100;
end

NNinput=pic_NNinput';
%NNtarget= [eye(26) eye(26) eye(26)];

Contact us at files@mathworks.com