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
08652270
Commit
08652270
authored
Nov 14, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if scaling values changed
parent
c3e4a52f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
softcascade.cpp
modules/gpu/src/softcascade.cpp
+12
-1
No files found.
modules/gpu/src/softcascade.cpp
View file @
08652270
...
@@ -248,6 +248,17 @@ struct cv::gpu::SCascade::Fields
...
@@ -248,6 +248,17 @@ struct cv::gpu::SCascade::Fields
return
fields
;
return
fields
;
}
}
bool
check
(
float
mins
,
float
maxs
,
int
scales
)
{
bool
updated
=
(
minScale
==
mins
)
||
(
maxScale
==
maxs
)
||
(
totals
=
scales
);
minScale
=
mins
;
maxScale
=
maxScale
;
totals
=
scales
;
return
updated
;
}
int
createLevels
(
const
int
fh
,
const
int
fw
)
int
createLevels
(
const
int
fh
,
const
int
fw
)
{
{
using
namespace
device
::
icf
;
using
namespace
device
::
icf
;
...
@@ -509,7 +520,7 @@ void cv::gpu::SCascade::detect(InputArray image, InputArray _rois, OutputArray _
...
@@ -509,7 +520,7 @@ void cv::gpu::SCascade::detect(InputArray image, InputArray _rois, OutputArray _
if
(
colored
.
type
()
==
CV_8UC3
)
if
(
colored
.
type
()
==
CV_8UC3
)
{
{
if
(
!
flds
.
update
(
colored
.
rows
,
colored
.
cols
,
flds
.
shrinkage
))
if
(
!
flds
.
update
(
colored
.
rows
,
colored
.
cols
,
flds
.
shrinkage
)
||
flds
.
check
(
minScale
,
maxScale
,
scales
)
)
flds
.
createLevels
(
colored
.
rows
,
colored
.
cols
);
flds
.
createLevels
(
colored
.
rows
,
colored
.
cols
);
flds
.
preprocess
(
colored
,
s
);
flds
.
preprocess
(
colored
,
s
);
}
}
...
...
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