function [histo]=histogram(input)

%needed for matlab
input=double(input);
[rows,cols]=size(input);
histo=zeros(1,256);
for i=1:1:rows
    for j=1:1:cols
        histo(input(i,j)+1)=histo(input(i,j)+1)+1;
    end;
end;
