Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
18513aa6
Commit
18513aa6
authored
May 29, 2011
by
davis@blarg-a324a5a3e.localnet
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
a9fd1348
dbd4ca21
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
general_hash.h
dlib/general_hash/general_hash.h
+2
-5
term_index.xml
docs/docs/term_index.xml
+3
-0
image_ex.cpp
examples/image_ex.cpp
+2
-2
surf_ex.cpp
examples/surf_ex.cpp
+2
-2
No files found.
dlib/general_hash/general_hash.h
View file @
18513aa6
...
...
@@ -5,6 +5,7 @@
#include <string>
#include "hash.h"
namespace
dlib
{
...
...
@@ -68,11 +69,7 @@ namespace dlib
const
std
::
string
&
item
)
const
{
unsigned
long
hash
=
0
;
std
::
string
::
size_type
size
=
item
.
size
();
for
(
std
::
string
::
size_type
i
=
0
;
i
<
size
;
++
i
)
hash
=
hash
*
37
+
static_cast
<
unsigned
long
>
(
item
[
i
]);
return
hash
;
return
hash
(
item
);
}
// ----------------------------------------------------------------------------------------
...
...
docs/docs/term_index.xml
View file @
18513aa6
...
...
@@ -280,6 +280,9 @@
<term
file=
"containers.html"
name=
"map"
/>
<term
file=
"dlib/matrix/matrix_data_layout_abstract.h.html"
name=
"row_major_layout"
/>
<term
file=
"dlib/matrix/matrix_data_layout_abstract.h.html"
name=
"column_major_layout"
/>
<term
file=
"dlib/matrix/matrix_exp_abstract.h.html"
name=
"matrix_exp"
/>
<term
file=
"dlib/matrix/matrix_abstract.h.html"
name=
"const_temp_matrix"
/>
...
...
examples/image_ex.cpp
View file @
18513aa6
...
...
@@ -40,8 +40,8 @@ int main(int argc, char** argv)
array2d
<
rgb_pixel
>
img
;
// Now load the image file into our image. If something is wrong then
// load_image() will throw an exception. Also, if you
compil
ed with libpng
// and libjpeg then load_image() can
also
load PNG and JPEG files in addition
// load_image() will throw an exception. Also, if you
link
ed with libpng
// and libjpeg then load_image() can load PNG and JPEG files in addition
// to BMP files.
load_image
(
img
,
argv
[
1
]);
...
...
examples/surf_ex.cpp
View file @
18513aa6
...
...
@@ -46,8 +46,8 @@ int main(int argc, char** argv)
array2d
<
rgb_pixel
>
img
;
// Now load the image file into our image. If something is wrong then
// load_image() will throw an exception. Also, if you
compil
ed with libpng
// and libjpeg then load_image() can
also
load PNG and JPEG files in addition
// load_image() will throw an exception. Also, if you
link
ed with libpng
// and libjpeg then load_image() can load PNG and JPEG files in addition
// to BMP files.
load_image
(
img
,
argv
[
1
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment