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
9fe92e21
Commit
9fe92e21
authored
Jul 31, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed grid/glob_reduce.hpp -> grid/reduce.hpp
parent
e820c5c6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
58 deletions
+58
-58
cudev.hpp
modules/cudev/include/opencv2/cudev.hpp
+1
-1
reduction.hpp
modules/cudev/include/opencv2/cudev/expr/reduction.hpp
+1
-1
reduce.hpp
modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp
+3
-3
reduce.hpp
modules/cudev/include/opencv2/cudev/grid/reduce.hpp
+53
-53
No files found.
modules/cudev/include/opencv2/cudev.hpp
View file @
9fe92e21
...
...
@@ -73,7 +73,7 @@
#include "cudev/block/vec_distance.hpp"
#include "cudev/grid/copy.hpp"
#include "cudev/grid/
glob_
reduce.hpp"
#include "cudev/grid/reduce.hpp"
#include "cudev/grid/histogram.hpp"
#include "cudev/grid/integral.hpp"
#include "cudev/grid/pyramids.hpp"
...
...
modules/cudev/include/opencv2/cudev/expr/reduction.hpp
View file @
9fe92e21
...
...
@@ -47,7 +47,7 @@
#define __OPENCV_CUDEV_EXPR_REDUCTION_HPP__
#include "../common.hpp"
#include "../grid/
glob_
reduce.hpp"
#include "../grid/reduce.hpp"
#include "../grid/histogram.hpp"
#include "../grid/integral.hpp"
#include "../grid/reduce_to_vec.hpp"
...
...
modules/cudev/include/opencv2/cudev/grid/detail/
glob_
reduce.hpp
→
modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp
View file @
9fe92e21
...
...
@@ -43,8 +43,8 @@
#pragma once
#ifndef __OPENCV_CUDEV_GRID_
GLOB_
REDUCE_DETAIL_HPP__
#define __OPENCV_CUDEV_GRID_
GLOB_
REDUCE_DETAIL_HPP__
#ifndef __OPENCV_CUDEV_GRID_REDUCE_DETAIL_HPP__
#define __OPENCV_CUDEV_GRID_REDUCE_DETAIL_HPP__
#include "../../common.hpp"
#include "../../util/tuple.hpp"
...
...
@@ -59,7 +59,7 @@
namespace
cv
{
namespace
cudev
{
namespace
grid_
glob_
reduce_detail
namespace
grid_reduce_detail
{
// Unroll
...
...
modules/cudev/include/opencv2/cudev/grid/
glob_
reduce.hpp
→
modules/cudev/include/opencv2/cudev/grid/reduce.hpp
View file @
9fe92e21
...
...
@@ -43,8 +43,8 @@
#pragma once
#ifndef __OPENCV_CUDEV_GRID_
GLOB_
REDUCE_HPP__
#define __OPENCV_CUDEV_GRID_
GLOB_
REDUCE_HPP__
#ifndef __OPENCV_CUDEV_GRID_REDUCE_HPP__
#define __OPENCV_CUDEV_GRID_REDUCE_HPP__
#include <limits>
#include "../common.hpp"
...
...
@@ -52,7 +52,7 @@
#include "../ptr2d/gpumat.hpp"
#include "../ptr2d/mask.hpp"
#include "../ptr2d/transform.hpp"
#include "detail/
glob_
reduce.hpp"
#include "detail/reduce.hpp"
namespace
cv
{
namespace
cudev
{
...
...
@@ -67,11 +67,11 @@ __host__ void gridCalcSum_(const SrcPtr& src, GpuMat_<ResType>& dst, const MaskP
CV_Assert
(
getRows
(
mask
)
==
rows
&&
getCols
(
mask
)
==
cols
);
grid_
glob_
reduce_detail
::
sum
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
shrinkPtr
(
mask
),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
grid_reduce_detail
::
sum
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
shrinkPtr
(
mask
),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
}
template
<
class
Policy
,
class
SrcPtr
,
typename
ResType
>
...
...
@@ -83,11 +83,11 @@ __host__ void gridCalcSum_(const SrcPtr& src, GpuMat_<ResType>& dst, Stream& str
const
int
rows
=
getRows
(
src
);
const
int
cols
=
getCols
(
src
);
grid_
glob_
reduce_detail
::
sum
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
WithOutMask
(),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
grid_reduce_detail
::
sum
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
WithOutMask
(),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
}
template
<
class
Policy
,
class
SrcPtr
,
typename
ResType
,
class
MaskPtr
>
...
...
@@ -101,11 +101,11 @@ __host__ void gridFindMinVal_(const SrcPtr& src, GpuMat_<ResType>& dst, const Ma
CV_Assert
(
getRows
(
mask
)
==
rows
&&
getCols
(
mask
)
==
cols
);
grid_
glob_
reduce_detail
::
minVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
shrinkPtr
(
mask
),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
grid_reduce_detail
::
minVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
shrinkPtr
(
mask
),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
}
template
<
class
Policy
,
class
SrcPtr
,
typename
ResType
>
...
...
@@ -117,11 +117,11 @@ __host__ void gridFindMinVal_(const SrcPtr& src, GpuMat_<ResType>& dst, Stream&
const
int
rows
=
getRows
(
src
);
const
int
cols
=
getCols
(
src
);
grid_
glob_
reduce_detail
::
minVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
WithOutMask
(),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
grid_reduce_detail
::
minVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
WithOutMask
(),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
}
template
<
class
Policy
,
class
SrcPtr
,
typename
ResType
,
class
MaskPtr
>
...
...
@@ -135,11 +135,11 @@ __host__ void gridFindMaxVal_(const SrcPtr& src, GpuMat_<ResType>& dst, const Ma
CV_Assert
(
getRows
(
mask
)
==
rows
&&
getCols
(
mask
)
==
cols
);
grid_
glob_
reduce_detail
::
maxVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
shrinkPtr
(
mask
),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
grid_reduce_detail
::
maxVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
shrinkPtr
(
mask
),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
}
template
<
class
Policy
,
class
SrcPtr
,
typename
ResType
>
...
...
@@ -151,11 +151,11 @@ __host__ void gridFindMaxVal_(const SrcPtr& src, GpuMat_<ResType>& dst, Stream&
const
int
rows
=
getRows
(
src
);
const
int
cols
=
getCols
(
src
);
grid_
glob_
reduce_detail
::
maxVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
WithOutMask
(),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
grid_reduce_detail
::
maxVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
WithOutMask
(),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
}
template
<
class
Policy
,
class
SrcPtr
,
typename
ResType
,
class
MaskPtr
>
...
...
@@ -170,11 +170,11 @@ __host__ void gridFindMinMaxVal_(const SrcPtr& src, GpuMat_<ResType>& dst, const
CV_Assert
(
getRows
(
mask
)
==
rows
&&
getCols
(
mask
)
==
cols
);
grid_
glob_
reduce_detail
::
minMaxVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
shrinkPtr
(
mask
),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
grid_reduce_detail
::
minMaxVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
shrinkPtr
(
mask
),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
}
template
<
class
Policy
,
class
SrcPtr
,
typename
ResType
>
...
...
@@ -187,11 +187,11 @@ __host__ void gridFindMinMaxVal_(const SrcPtr& src, GpuMat_<ResType>& dst, Strea
const
int
rows
=
getRows
(
src
);
const
int
cols
=
getCols
(
src
);
grid_
glob_
reduce_detail
::
minMaxVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
WithOutMask
(),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
grid_reduce_detail
::
minMaxVal
<
Policy
>
(
shrinkPtr
(
src
),
dst
[
0
],
WithOutMask
(),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
}
template
<
class
Policy
,
class
SrcPtr
,
typename
ResType
,
class
MaskPtr
>
...
...
@@ -209,11 +209,11 @@ __host__ void gridCountNonZero_(const SrcPtr& src, GpuMat_<ResType>& dst, const
not_equal_to
<
src_type
>
ne_op
;
const
src_type
zero
=
VecTraits
<
src_type
>::
all
(
0
);
grid_
glob_
reduce_detail
::
sum
<
Policy
>
(
shrinkPtr
(
transformPtr
(
src
,
bind2nd
(
ne_op
,
zero
))),
dst
[
0
],
shrinkPtr
(
mask
),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
grid_reduce_detail
::
sum
<
Policy
>
(
shrinkPtr
(
transformPtr
(
src
,
bind2nd
(
ne_op
,
zero
))),
dst
[
0
],
shrinkPtr
(
mask
),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
}
template
<
class
Policy
,
class
SrcPtr
,
typename
ResType
>
...
...
@@ -229,11 +229,11 @@ __host__ void gridCountNonZero_(const SrcPtr& src, GpuMat_<ResType>& dst, Stream
not_equal_to
<
src_type
>
ne_op
;
const
src_type
zero
=
VecTraits
<
src_type
>::
all
(
0
);
grid_
glob_
reduce_detail
::
sum
<
Policy
>
(
shrinkPtr
(
transformPtr
(
src
,
bind2nd
(
ne_op
,
zero
))),
dst
[
0
],
WithOutMask
(),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
grid_reduce_detail
::
sum
<
Policy
>
(
shrinkPtr
(
transformPtr
(
src
,
bind2nd
(
ne_op
,
zero
))),
dst
[
0
],
WithOutMask
(),
rows
,
cols
,
StreamAccessor
::
getStream
(
stream
));
}
// default policy
...
...
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