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
6f9de0f4
Commit
6f9de0f4
authored
Aug 11, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the full_object_detection object.
parent
8a843211
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
0 deletions
+80
-0
full_object_detection.h
dlib/image_processing/full_object_detection.h
+40
-0
full_object_detection_abstract.h
dlib/image_processing/full_object_detection_abstract.h
+40
-0
No files found.
dlib/image_processing/full_object_detection.h
0 → 100644
View file @
6f9de0f4
// Copyright (C) 2011 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_FULL_OBJECT_DeTECTION_H__
#define DLIB_FULL_OBJECT_DeTECTION_H__
#include "../geometry.h"
#include "full_object_detection_abstract.h"
#include <vector>
namespace
dlib
{
// ----------------------------------------------------------------------------------------
const
static
point
MOVABLE_PART_NOT_PRESENT
(
0x7FFFFFFF
,
0x7FFFFFFF
);
// ----------------------------------------------------------------------------------------
struct
full_object_detection
{
full_object_detection
(
const
rectangle
&
rect_
,
const
std
::
vector
<
point
>&
movable_parts_
)
:
rect
(
rect_
),
movable_parts
(
movable_parts
)
{}
full_object_detection
(
const
rectangle
&
rect_
)
:
rect
(
rect_
)
{}
rectangle
rect
;
std
::
vector
<
point
>
movable_parts
;
// it should always be the case that rect.contains(movable_parts[i]) == true
};
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_FULL_OBJECT_DeTECTION_H_
dlib/image_processing/full_object_detection_abstract.h
0 → 100644
View file @
6f9de0f4
// Copyright (C) 2011 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#undef DLIB_FULL_OBJECT_DeTECTION_ABSTRACT_H__
#ifdef DLIB_FULL_OBJECT_DeTECTION_ABSTRACT_H__
#include <vector>
#include "../geometry.h"
namespace
dlib
{
// ----------------------------------------------------------------------------------------
const
static
point
MOVABLE_PART_NOT_PRESENT
(
0x7FFFFFFF
,
0x7FFFFFFF
);
// ----------------------------------------------------------------------------------------
struct
full_object_detection
{
full_object_detection
(
const
rectangle
&
rect_
,
const
std
::
vector
<
point
>&
movable_parts_
)
:
rect
(
rect_
),
movable_parts
(
movable_parts
)
{}
full_object_detection
(
const
rectangle
&
rect_
)
:
rect
(
rect_
)
{}
rectangle
rect
;
std
::
vector
<
point
>
movable_parts
;
// it should always be the case that rect.contains(movable_parts[i]) == true
};
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_FULL_OBJECT_DeTECTION_ABSTRACT_H__
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