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
ec70282b
Commit
ec70282b
authored
Apr 25, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switched to Input/Output Array in min/max operations
parent
f2aa6ebe
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
14 deletions
+8
-14
gpuarithm.hpp
modules/gpuarithm/include/opencv2/gpuarithm.hpp
+6
-12
element_operations.cpp
modules/gpuarithm/src/element_operations.cpp
+0
-0
hough.cpp
modules/gpuimgproc/src/hough.cpp
+1
-1
surf_gpu.cpp
modules/nonfree/src/surf_gpu.cpp
+1
-1
No files found.
modules/gpuarithm/include/opencv2/gpuarithm.hpp
View file @
ec70282b
...
@@ -115,6 +115,12 @@ CV_EXPORTS void rshift(InputArray src, Scalar_<int> val, OutputArray dst, Stream
...
@@ -115,6 +115,12 @@ CV_EXPORTS void rshift(InputArray src, Scalar_<int> val, OutputArray dst, Stream
//! supports 1, 3 and 4 channels images with CV_8U, CV_16U or CV_32S depth
//! supports 1, 3 and 4 channels images with CV_8U, CV_16U or CV_32S depth
CV_EXPORTS
void
lshift
(
InputArray
src
,
Scalar_
<
int
>
val
,
OutputArray
dst
,
Stream
&
stream
=
Stream
::
Null
());
CV_EXPORTS
void
lshift
(
InputArray
src
,
Scalar_
<
int
>
val
,
OutputArray
dst
,
Stream
&
stream
=
Stream
::
Null
());
//! computes per-element minimum of two arrays (dst = min(src1, src2))
CV_EXPORTS
void
min
(
InputArray
src1
,
InputArray
src2
,
OutputArray
dst
,
Stream
&
stream
=
Stream
::
Null
());
//! computes per-element maximum of two arrays (dst = max(src1, src2))
CV_EXPORTS
void
max
(
InputArray
src1
,
InputArray
src2
,
OutputArray
dst
,
Stream
&
stream
=
Stream
::
Null
());
//! computes the weighted sum of two arrays (dst = alpha*src1 + beta*src2 + gamma)
//! computes the weighted sum of two arrays (dst = alpha*src1 + beta*src2 + gamma)
CV_EXPORTS
void
addWeighted
(
const
GpuMat
&
src1
,
double
alpha
,
const
GpuMat
&
src2
,
double
beta
,
double
gamma
,
GpuMat
&
dst
,
CV_EXPORTS
void
addWeighted
(
const
GpuMat
&
src1
,
double
alpha
,
const
GpuMat
&
src2
,
double
beta
,
double
gamma
,
GpuMat
&
dst
,
int
dtype
=
-
1
,
Stream
&
stream
=
Stream
::
Null
());
int
dtype
=
-
1
,
Stream
&
stream
=
Stream
::
Null
());
...
@@ -125,18 +131,6 @@ static inline void scaleAdd(const GpuMat& src1, double alpha, const GpuMat& src2
...
@@ -125,18 +131,6 @@ static inline void scaleAdd(const GpuMat& src1, double alpha, const GpuMat& src2
addWeighted
(
src1
,
alpha
,
src2
,
1.0
,
0.0
,
dst
,
-
1
,
stream
);
addWeighted
(
src1
,
alpha
,
src2
,
1.0
,
0.0
,
dst
,
-
1
,
stream
);
}
}
//! computes per-element minimum of two arrays (dst = min(src1, src2))
CV_EXPORTS
void
min
(
const
GpuMat
&
src1
,
const
GpuMat
&
src2
,
GpuMat
&
dst
,
Stream
&
stream
=
Stream
::
Null
());
//! computes per-element minimum of array and scalar (dst = min(src1, src2))
CV_EXPORTS
void
min
(
const
GpuMat
&
src1
,
double
src2
,
GpuMat
&
dst
,
Stream
&
stream
=
Stream
::
Null
());
//! computes per-element maximum of two arrays (dst = max(src1, src2))
CV_EXPORTS
void
max
(
const
GpuMat
&
src1
,
const
GpuMat
&
src2
,
GpuMat
&
dst
,
Stream
&
stream
=
Stream
::
Null
());
//! computes per-element maximum of array and scalar (dst = max(src1, src2))
CV_EXPORTS
void
max
(
const
GpuMat
&
src1
,
double
src2
,
GpuMat
&
dst
,
Stream
&
stream
=
Stream
::
Null
());
//! implements generalized matrix product algorithm GEMM from BLAS
//! implements generalized matrix product algorithm GEMM from BLAS
CV_EXPORTS
void
gemm
(
const
GpuMat
&
src1
,
const
GpuMat
&
src2
,
double
alpha
,
CV_EXPORTS
void
gemm
(
const
GpuMat
&
src1
,
const
GpuMat
&
src2
,
double
alpha
,
const
GpuMat
&
src3
,
double
beta
,
GpuMat
&
dst
,
int
flags
=
0
,
Stream
&
stream
=
Stream
::
Null
());
const
GpuMat
&
src3
,
double
beta
,
GpuMat
&
dst
,
int
flags
=
0
,
Stream
&
stream
=
Stream
::
Null
());
...
...
modules/gpuarithm/src/element_operations.cpp
View file @
ec70282b
This diff is collapsed.
Click to expand it.
modules/gpuimgproc/src/hough.cpp
View file @
ec70282b
...
@@ -761,7 +761,7 @@ namespace
...
@@ -761,7 +761,7 @@ namespace
{
{
buildRTable_gpu
(
edgePointList
.
ptr
<
unsigned
int
>
(
0
),
edgePointList
.
ptr
<
float
>
(
1
),
edgePointList
.
cols
,
buildRTable_gpu
(
edgePointList
.
ptr
<
unsigned
int
>
(
0
),
edgePointList
.
ptr
<
float
>
(
1
),
edgePointList
.
cols
,
r_table
,
r_sizes
.
ptr
<
int
>
(),
make_short2
(
templCenter
.
x
,
templCenter
.
y
),
levels
);
r_table
,
r_sizes
.
ptr
<
int
>
(),
make_short2
(
templCenter
.
x
,
templCenter
.
y
),
levels
);
min
(
r_sizes
,
maxSize
,
r_sizes
);
gpu
::
min
(
r_sizes
,
maxSize
,
r_sizes
);
}
}
}
}
...
...
modules/nonfree/src/surf_gpu.cpp
View file @
ec70282b
...
@@ -147,7 +147,7 @@ namespace
...
@@ -147,7 +147,7 @@ namespace
if
(
use_mask
)
if
(
use_mask
)
{
{
min
(
mask
,
1.0
,
surf_
.
mask1
);
gpu
::
min
(
mask
,
1.0
,
surf_
.
mask1
);
gpu
::
integralBuffered
(
surf_
.
mask1
,
surf_
.
maskSum
,
surf_
.
intBuffer
);
gpu
::
integralBuffered
(
surf_
.
mask1
,
surf_
.
maskSum
,
surf_
.
intBuffer
);
maskOffset
=
bindMaskSumTex
(
surf_
.
maskSum
);
maskOffset
=
bindMaskSumTex
(
surf_
.
maskSum
);
}
}
...
...
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