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
9bd418a5
Commit
9bd418a5
authored
Feb 12, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made full_object_detection comparable via operator==
parent
11016884
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
full_object_detection.h
dlib/image_processing/full_object_detection.h
+16
-0
full_object_detection_abstract.h
dlib/image_processing/full_object_detection_abstract.h
+8
-0
No files found.
dlib/image_processing/full_object_detection.h
View file @
9bd418a5
...
...
@@ -91,6 +91,22 @@ namespace dlib
deserialize
(
item
.
parts
,
in
);
}
bool
operator
==
(
const
full_object_detection
&
rhs
)
const
{
if
(
rect
!=
rhs
.
rect
)
return
false
;
if
(
parts
.
size
()
!=
rhs
.
parts
.
size
())
return
false
;
for
(
size_t
i
=
0
;
i
<
parts
.
size
();
++
i
)
{
if
(
parts
[
i
]
!=
rhs
.
parts
[
i
]);
return
false
;
}
return
true
;
}
private
:
rectangle
rect
;
std
::
vector
<
point
>
parts
;
...
...
dlib/image_processing/full_object_detection_abstract.h
View file @
9bd418a5
...
...
@@ -104,6 +104,14 @@ namespace dlib
when the return value of part() is equal to OBJECT_PART_NOT_PRESENT.
This is useful for modeling object parts that are not always observed.
!*/
bool
operator
==
(
const
full_object_detection
&
rhs
)
const
;
/*!
ensures
- returns true if and only if *this and rhs have identical state.
!*/
};
// ----------------------------------------------------------------------------------------
...
...
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