source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/vlutil/toolbox/histnorm.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 943 bytes
Line 
1function H=histnorm(H)
2% HISTNORM  Normalize histogram
3%  H=HISTNORM(H) simply divides H by the sum of its elements.
4%
5%  See also HISTMARG.
6
7% AUTORIGHTS
8% Copyright (C) 2006 Andrea Vedaldi
9%       
10% This file is part of VLUtil.
11%
12% VLUtil is free software; you can redistribute it and/or modify
13% it under the terms of the GNU General Public License as published by
14% the Free Software Foundation; either version 2, or (at your option)
15% any later version.
16%
17% This program is distributed in the hope that it will be useful,
18% but WITHOUT ANY WARRANTY; without even the implied warranty of
19% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20% GNU General Public License for more details.
21%
22% You should have received a copy of the GNU General Public License
23% along with this program; if not, write to the Free Software Foundation,
24% Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
26H = H / sum(H(:)) ;
27
28
Note: See TracBrowser for help on using the repository browser.