Commit 51b9c7a7 authored by Davis King's avatar Davis King

made the spec more clear

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402388
parent f7d97090
......@@ -46,14 +46,15 @@ namespace dlib
/*!
requires
- in_image_type == is an implementation of array2d/array2d_kernel_abstract.h
- hist must be capable of representing a vector of length
- hist must be capable of representing a column vector of length
pixel_traits<typename in_image_type>::max(). I.e. if R and C are nonzero
then they must be values that don't conflict with the previous sentence.
ensures
- #hist.size() == pixel_traits<typename in_image_type>::max()
- #hist.nc() == 1 || #hist.nr() == 1 (i.e. hist is either a row or column vector)
- #hist == the histogram for in_img. I.e. it is the case that for all
valid i:
- hist[i] == the number of times a pixel with intensity i appears
- hist(i) == the number of times a pixel with intensity i appears
in in_img
!*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment