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
022a8b96
Commit
022a8b96
authored
Oct 15, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rounding bug in Level creation
parent
2bcb8dbd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
icf.hpp
modules/gpu/src/icf.hpp
+1
-10
imgproc.cpp
modules/gpu/src/imgproc.cpp
+1
-1
softcascade.cpp
modules/gpu/src/softcascade.cpp
+11
-1
No files found.
modules/gpu/src/icf.hpp
View file @
022a8b96
...
...
@@ -81,16 +81,7 @@ struct __align__(8) Level //is actually 24 bytes
uchar2
workRect
;
uchar2
objSize
;
Level
(
int
idx
,
const
Octave
&
oct
,
const
float
scale
,
const
int
w
,
const
int
h
)
:
octave
(
idx
),
relScale
(
scale
/
oct
.
scale
),
shrScale
(
relScale
/
(
float
)
oct
.
shrinkage
)
{
workRect
.
x
=
round
(
w
/
(
float
)
oct
.
shrinkage
);
workRect
.
y
=
round
(
h
/
(
float
)
oct
.
shrinkage
);
objSize
.
x
=
round
(
oct
.
size
.
x
*
relScale
);
objSize
.
y
=
round
(
oct
.
size
.
y
*
relScale
);
}
Level
(
int
idx
,
const
Octave
&
oct
,
const
float
scale
,
const
int
w
,
const
int
h
);
__device
Level
(){}
};
...
...
modules/gpu/src/imgproc.cpp
View file @
022a8b96
...
...
@@ -553,7 +553,7 @@ void cv::gpu::integralBuffered(const GpuMat& src, GpuMat& sum, GpuMat& buffer, S
src
.
locateROI
(
whole
,
offset
);
if
(
info
.
supports
(
WARP_SHUFFLE_FUNCTIONS
)
&&
src
.
cols
<=
2048
)
if
(
false
&&
info
.
supports
(
WARP_SHUFFLE_FUNCTIONS
)
&&
src
.
cols
<=
2048
)
{
GpuMat
srcAlligned
;
...
...
modules/gpu/src/softcascade.cpp
View file @
022a8b96
...
...
@@ -65,6 +65,16 @@ cv::Size cv::gpu::SoftCascade::getRoiSize() const { throw_nogpu(); return cv::Si
#include <icf.hpp>
cv
::
gpu
::
device
::
icf
::
Level
::
Level
(
int
idx
,
const
Octave
&
oct
,
const
float
scale
,
const
int
w
,
const
int
h
)
:
octave
(
idx
),
relScale
(
scale
/
oct
.
scale
),
shrScale
(
relScale
/
(
float
)
oct
.
shrinkage
)
{
workRect
.
x
=
round
(
w
/
(
float
)
oct
.
shrinkage
);
workRect
.
y
=
round
(
h
/
(
float
)
oct
.
shrinkage
);
objSize
.
x
=
cv
::
saturate_cast
<
uchar
>
(
oct
.
size
.
x
*
relScale
);
objSize
.
y
=
cv
::
saturate_cast
<
uchar
>
(
oct
.
size
.
y
*
relScale
);
}
namespace
cv
{
namespace
gpu
{
namespace
device
{
namespace
icf
{
void
fillBins
(
cv
::
gpu
::
PtrStepSzb
hogluv
,
const
cv
::
gpu
::
PtrStepSzf
&
nangle
,
...
...
@@ -72,7 +82,7 @@ namespace icf {
}
namespace
imgproc
{
void
meanShiftFiltering_gpu
(
const
PtrStepSzb
&
src
,
PtrStepSzb
dst
,
int
sp
,
int
sr
,
int
maxIter
,
float
eps
,
cudaStream_t
stream
);
void
shfl_integral_gpu
(
PtrStepSzb
img
,
PtrStepSz
<
unsigned
int
>
integral
,
cudaStream_t
stream
);
}
}}}
...
...
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