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
db41449b
Commit
db41449b
authored
Jan 21, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed errors under MacOS
parent
e3f3de84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
matrix_reductions.cu
modules/gpu/src/cuda/matrix_reductions.cu
+1
-1
matrix_reductions.cpp
modules/gpu/src/matrix_reductions.cpp
+5
-5
No files found.
modules/gpu/src/cuda/matrix_reductions.cu
View file @
db41449b
...
...
@@ -938,7 +938,7 @@ namespace cv { namespace gpu { namespace mathfunc
//////////////////////////////////////////////////////////////////////////
// Sum
namespace sum
namespace sum
s
{
template <typename T> struct SumType {};
...
...
modules/gpu/src/matrix_reductions.cpp
View file @
db41449b
...
...
@@ -130,7 +130,7 @@ namespace cv { namespace gpu { namespace mathfunc
template
<
typename
T
>
void
sqrSumMultipassCaller
(
const
DevMem2D
src
,
PtrStep
buf
,
double
*
sum
,
int
cn
);
namespace
sum
namespace
sum
s
{
void
getBufSizeRequired
(
int
cols
,
int
rows
,
int
cn
,
int
&
bufcols
,
int
&
bufrows
);
}
...
...
@@ -161,8 +161,8 @@ Scalar cv::gpu::sum(const GpuMat& src, GpuMat& buf)
sumCaller
<
int
>
,
sumCaller
<
float
>
,
0
};
Size
buf_size
;
sum
::
getBufSizeRequired
(
src
.
cols
,
src
.
rows
,
src
.
channels
(),
buf_size
.
width
,
buf_size
.
height
);
sum
s
::
getBufSizeRequired
(
src
.
cols
,
src
.
rows
,
src
.
channels
(),
buf_size
.
width
,
buf_size
.
height
);
ensureSizeIsEnough
(
buf_size
,
CV_8U
,
buf
);
Caller
*
callers
=
multipass_callers
;
...
...
@@ -206,8 +206,8 @@ Scalar cv::gpu::sqrSum(const GpuMat& src, GpuMat& buf)
callers
=
singlepass_callers
;
Size
buf_size
;
sum
::
getBufSizeRequired
(
src
.
cols
,
src
.
rows
,
src
.
channels
(),
buf_size
.
width
,
buf_size
.
height
);
sum
s
::
getBufSizeRequired
(
src
.
cols
,
src
.
rows
,
src
.
channels
(),
buf_size
.
width
,
buf_size
.
height
);
ensureSizeIsEnough
(
buf_size
,
CV_8U
,
buf
);
Caller
caller
=
callers
[
src
.
depth
()];
...
...
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