Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
c8ccb488
Commit
c8ccb488
authored
Sep 08, 2011
by
Davis King
Browse files
Added comments clarifying the thread safety requirements of the new
object detection tools.
parent
d9ef460c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
0 deletions
+28
-0
dlib/image_keypoint/hashed_feature_image_abstract.h
dlib/image_keypoint/hashed_feature_image_abstract.h
+8
-0
dlib/image_keypoint/hog_abstract.h
dlib/image_keypoint/hog_abstract.h
+8
-0
dlib/image_processing/box_overlap_testing_abstract.h
dlib/image_processing/box_overlap_testing_abstract.h
+5
-0
dlib/image_processing/scan_image_pyramid_abstract.h
dlib/image_processing/scan_image_pyramid_abstract.h
+7
-0
No files found.
dlib/image_keypoint/hashed_feature_image_abstract.h
View file @
c8ccb488
...
...
@@ -37,6 +37,14 @@ namespace dlib
creating an indicator vector with multiple non-zero indicator features.
THREAD SAFETY
Concurrent access to an instance of this object is not safe and should be protected
by a mutex lock except for the case where you are copying the configuration
(via copy_configuration()) of a hashed_feature_image object to many other threads.
In this case, it is safe to copy the configuration of a shared object so long
as no other operations are performed on it.
NOTATION
let BASE_FE denote the base feature_extractor object contained inside
the hashed_feature_image.
...
...
dlib/image_keypoint/hog_abstract.h
View file @
c8ccb488
...
...
@@ -98,6 +98,14 @@ namespace dlib
Finally, the cell_stride parameter controls how much overlap you get between
blocks. The maximum amount of overlap is obtained when cell_stride == 1.
At the other extreme, you would have no overlap if cell_stride == block_size.
THREAD SAFETY
Concurrent access to an instance of this object is not safe and should be protected
by a mutex lock except for the case where you are copying the configuration
(via copy_configuration()) of a hog_image object to many other threads.
In this case, it is safe to copy the configuration of a shared object so long
as no other operations are performed on it.
!*/
public:
...
...
dlib/image_processing/box_overlap_testing_abstract.h
View file @
c8ccb488
...
...
@@ -16,6 +16,11 @@ namespace dlib
WHAT THIS OBJECT REPRESENTS
This object is a simple function object for determining if two rectangles
overlap.
THREAD SAFETY
Concurrent access to an instance of this object is safe provided that
only const member functions are invoked. Otherwise, access must be
protected by a mutex lock.
!*/
public:
...
...
dlib/image_processing/scan_image_pyramid_abstract.h
View file @
c8ccb488
...
...
@@ -76,6 +76,13 @@ namespace dlib
Finally, the sliding window classifiers described above are applied to every level
of an image pyramid.
THREAD SAFETY
Concurrent access to an instance of this object is not safe and should be protected
by a mutex lock except for the case where you are copying the configuration
(via copy_configuration()) of a scan_image_pyramid object to many other threads.
In this case, it is safe to copy the configuration of a shared object so long
as no other operations are performed on it.
!*/
public:
...
...
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