Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
792fb3bd
Commit
792fb3bd
authored
Feb 06, 2012
by
Alexander Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed #1549 issue
parent
c19d0b17
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
33 deletions
+33
-33
_facedetection.h
modules/legacy/src/_facedetection.h
+14
-14
facedetection.cpp
modules/legacy/src/facedetection.cpp
+19
-19
No files found.
modules/legacy/src/_facedetection.h
View file @
792fb3bd
...
@@ -296,29 +296,29 @@ private:
...
@@ -296,29 +296,29 @@ private:
};
};
class
ListElem
class
FaceDetection
ListElem
{
{
public
:
public
:
ListElem
();
FaceDetection
ListElem
();
ListElem
(
Face
*
pFace
,
ListElem
*
pHead
);
FaceDetectionListElem
(
Face
*
pFace
,
FaceDetection
ListElem
*
pHead
);
virtual
~
ListElem
();
virtual
~
FaceDetection
ListElem
();
ListElem
*
m_pNext
;
FaceDetection
ListElem
*
m_pNext
;
ListElem
*
m_pPrev
;
FaceDetection
ListElem
*
m_pPrev
;
Face
*
m_pFace
;
Face
*
m_pFace
;
};
//class ListElem
};
//class
FaceDetection
ListElem
class
List
class
FaceDetection
List
{
{
public
:
public
:
List
();
FaceDetection
List
();
int
AddElem
(
Face
*
pFace
);
int
AddElem
(
Face
*
pFace
);
virtual
~
List
();
virtual
~
FaceDetection
List
();
Face
*
GetData
();
Face
*
GetData
();
long
m_FacesCount
;
long
m_FacesCount
;
private
:
private
:
ListElem
*
m_pHead
;
FaceDetection
ListElem
*
m_pHead
;
ListElem
*
m_pCurElem
;
FaceDetection
ListElem
*
m_pCurElem
;
};
//class List
};
//class
FaceDetection
List
class
FaceDetection
class
FaceDetection
...
@@ -341,7 +341,7 @@ protected:
...
@@ -341,7 +341,7 @@ protected:
CvSeq
*
m_seqRects
;
CvSeq
*
m_seqRects
;
bool
m_bBoosting
;
bool
m_bBoosting
;
List
*
m_pFaceList
;
FaceDetection
List
*
m_pFaceList
;
protected
:
protected
:
void
ResetImage
();
void
ResetImage
();
...
...
modules/legacy/src/facedetection.cpp
View file @
792fb3bd
...
@@ -66,7 +66,7 @@ FaceDetection::FaceDetection()
...
@@ -66,7 +66,7 @@ FaceDetection::FaceDetection()
m_seqRects
=
NULL
;
m_seqRects
=
NULL
;
m_iNumLayers
=
16
;
m_iNumLayers
=
16
;
assert
(
m_iNumLayers
<=
MAX_LAYERS
);
assert
(
m_iNumLayers
<=
MAX_LAYERS
);
m_pFaceList
=
new
List
();
m_pFaceList
=
new
FaceDetection
List
();
...
@@ -241,7 +241,7 @@ void FaceDetection::CreateResults(CvSeq * lpSeq)
...
@@ -241,7 +241,7 @@ void FaceDetection::CreateResults(CvSeq * lpSeq)
void
FaceDetection
::
ResetImage
()
void
FaceDetection
::
ResetImage
()
{
{
delete
m_pFaceList
;
delete
m_pFaceList
;
m_pFaceList
=
new
List
();
m_pFaceList
=
new
FaceDetection
List
();
}
//FaceDetection::ResetImage
}
//FaceDetection::ResetImage
...
@@ -424,16 +424,16 @@ void FaceDetection::PostBoostingFindCandidats(IplImage * FaceImage)
...
@@ -424,16 +424,16 @@ void FaceDetection::PostBoostingFindCandidats(IplImage * FaceImage)
//////
//////
//List Class
//
FaceDetection
List Class
/////
/////
ListElem
::
ListElem
()
FaceDetectionListElem
::
FaceDetection
ListElem
()
{
{
m_pNext
=
this
;
m_pNext
=
this
;
m_pPrev
=
this
;
m_pPrev
=
this
;
m_pFace
=
NULL
;
m_pFace
=
NULL
;
}
///
ListElem::
ListElem()
}
///
FaceDetectionListElem::FaceDetection
ListElem()
ListElem
::
ListElem
(
Face
*
pFace
,
ListElem
*
pHead
)
FaceDetectionListElem
::
FaceDetectionListElem
(
Face
*
pFace
,
FaceDetection
ListElem
*
pHead
)
{
{
m_pNext
=
pHead
;
m_pNext
=
pHead
;
m_pPrev
=
pHead
->
m_pPrev
;
m_pPrev
=
pHead
->
m_pPrev
;
...
@@ -441,26 +441,26 @@ ListElem::ListElem(Face * pFace,ListElem * pHead)
...
@@ -441,26 +441,26 @@ ListElem::ListElem(Face * pFace,ListElem * pHead)
pHead
->
m_pPrev
=
this
;
pHead
->
m_pPrev
=
this
;
m_pFace
=
pFace
;
m_pFace
=
pFace
;
}
//
ListElem::
ListElem(Face * pFace)
}
//
FaceDetectionListElem::FaceDetection
ListElem(Face * pFace)
ListElem
::~
ListElem
()
FaceDetectionListElem
::~
FaceDetection
ListElem
()
{
{
delete
m_pFace
;
delete
m_pFace
;
m_pNext
->
m_pPrev
=
m_pPrev
;
m_pNext
->
m_pPrev
=
m_pPrev
;
m_pPrev
->
m_pNext
=
m_pNext
;
m_pPrev
->
m_pNext
=
m_pNext
;
}
//
ListElem::~
ListElem()
}
//
FaceDetectionListElem::~FaceDetection
ListElem()
List
::
List
()
FaceDetectionList
::
FaceDetection
List
()
{
{
m_pHead
=
new
ListElem
();
m_pHead
=
new
FaceDetection
ListElem
();
m_FacesCount
=
0
;
m_FacesCount
=
0
;
m_pCurElem
=
m_pHead
;
m_pCurElem
=
m_pHead
;
}
//
List::
List()
}
//
FaceDetectionList::FaceDetection
List()
List
::~
List
()
FaceDetectionList
::~
FaceDetection
List
()
{
{
void
*
tmp
;
void
*
tmp
;
while
((
tmp
=
m_pHead
->
m_pNext
->
m_pFace
)
!=
0
)
while
((
tmp
=
m_pHead
->
m_pNext
->
m_pFace
)
!=
0
)
...
@@ -468,19 +468,19 @@ List::~List()
...
@@ -468,19 +468,19 @@ List::~List()
delete
m_pHead
;
delete
m_pHead
;
}
//
List::~
List()
}
//
FaceDetectionList::~FaceDetection
List()
int
List
::
AddElem
(
Face
*
pFace
)
int
FaceDetection
List
::
AddElem
(
Face
*
pFace
)
{
{
new
ListElem
(
pFace
,
m_pHead
);
new
FaceDetection
ListElem
(
pFace
,
m_pHead
);
return
m_FacesCount
++
;
return
m_FacesCount
++
;
}
//List::AddElem(Face * pFace)
}
//
FaceDetection
List::AddElem(Face * pFace)
Face
*
List
::
GetData
()
Face
*
FaceDetection
List
::
GetData
()
{
{
m_pCurElem
=
m_pCurElem
->
m_pNext
;
m_pCurElem
=
m_pCurElem
->
m_pNext
;
return
m_pCurElem
->
m_pFace
;
return
m_pCurElem
->
m_pFace
;
}
//Face * List::GetData()
}
//Face *
FaceDetection
List::GetData()
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