Advertisement
HugoBallee

histogramme.m

Feb 24th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.29 KB | None | 0 0
  1. % histogramme.m
  2. % Hugo Gallée
  3. % 24/02/2012
  4.  
  5. function [ histo ] = histogramme( img )
  6.     [Nlin, Ncol] = size(img);
  7.     histo = zeros( 1, Nlin*Ncol);
  8.     k = 1;
  9.     for lin=1:Nlin
  10.         for col=1:Ncol
  11.             histo(k) = img(lin,col);
  12.             k = k+1;
  13.         end
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement