Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % histogramme.m
- % Hugo Gallée
- % 24/02/2012
- function [ histo ] = histogramme( img )
- [Nlin, Ncol] = size(img);
- histo = zeros( 1, Nlin*Ncol);
- k = 1;
- for lin=1:Nlin
- for col=1:Ncol
- histo(k) = img(lin,col);
- k = k+1;
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement