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
612f234f
Commit
612f234f
authored
Jan 17, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finished gpu module docs for per-element operations
parent
59983648
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
185 additions
and
6 deletions
+185
-6
gpu_per_element_operations.tex
doc/gpu_per_element_operations.tex
+185
-6
No files found.
doc/gpu_per_element_operations.tex
View file @
612f234f
\section
{
Per-element Operations.
}
\cvCppFunc
{
add
}
\cvCppFunc
{
gpu::
add
}
Computes matrix-matrix or matrix-scalar sum.
\cvdefCpp
{
void add(const GpuMat
\&
a, const GpuMat
\&
b, GpuMat
\&
c);
}
\begin{description}
\cvarg
{
a
}{
First source matrix. 8UC1, 8UC4, 32SC1 and 32FC2 matri
x
es are supported for now.
}
\cvarg
{
a
}{
First source matrix. 8UC1, 8UC4, 32SC1 and 32FC2 matri
c
es are supported for now.
}
\cvarg
{
b
}{
Second source matrix. Must have the same size and type as
\texttt
{
a
}
.
}
\cvarg
{
c
}{
Destination matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
\cvdefCpp
{
void add(const GpuMat
\&
a, const Scalar
\&
sc, GpuMat
\&
c);
}
\begin{description}
\cvarg
{
a
}{
Source matrix. 32
S
C1 and 32FC2 matrixes are supported for now.
}
\cvarg
{
b
}{
Source scalar.
}
\cvarg
{
a
}{
Source matrix. 32
F
C1 and 32FC2 matrixes are supported for now.
}
\cvarg
{
b
}{
Source scalar
to be added to the source matrix
.
}
\cvarg
{
c
}{
Destination matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
See also:
\cvCppCross
{
add
}
.
\cvCppFunc
{
gpu::subtract
}
Subtracts matrix from another matrix (or scalar from matrix).
\cvdefCpp
{
void subtract(const GpuMat
\&
a, const GpuMat
\&
b, GpuMat
\&
c);
}
\begin{description}
\cvarg
{
a
}{
First source matrix. 8UC1, 8UC4, 32SC1 and 32FC2 matrices are supported for now.
}
\cvarg
{
b
}{
Second source matrix. Must have the same size and type as
\texttt
{
a
}
.
}
\cvarg
{
c
}{
Destination matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
\cvdefCpp
{
void subtract(const GpuMat
\&
a, const Scalar
\&
sc, GpuMat
\&
c);
}
\begin{description}
\cvarg
{
a
}{
Source matrix. 32FC1 and 32FC2 matrixes are supported for now.
}
\cvarg
{
b
}{
Scalar to be subtracted from the source matrix
\texttt
{
a
}
.
}
\cvarg
{
c
}{
Destination matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
See also:
\cvCppCross
{
subtract
}
.
\cvCppFunc
{
gpu::multiply
}
Computes per-element product of two matrices (or of matrix and scalar).
\cvdefCpp
{
void multiply(const GpuMat
\&
a, const GpuMat
\&
b, GpuMat
\&
c);
}
\begin{description}
\cvarg
{
a
}{
First source matrix. 8UC1, 8UC4, 32SC1 and 32FC2 matrices are supported for now.
}
\cvarg
{
b
}{
Second source matrix. Must have the same size and type as
\texttt
{
a
}
.
}
\cvarg
{
c
}{
Destionation matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
\cvdefCpp
{
void multiply(const GpuMat
\&
a, const Scalar
\&
sc, GpuMat
\&
c);
}
\begin{description}
\cvarg
{
a
}{
Source matrix. 32FC1 and 32FC2 matrixes are supported for now.
}
\cvarg
{
b
}{
Scalar to be multiplied by.
}
\cvarg
{
c
}{
Destination matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
See also:
\cvCppCross
{
multiply
}
.
\cvCppFunc
{
gpu::divide
}
Performs per-element division of two matrices (or division of matrix by scalar).
\cvdefCpp
{
void divide(const GpuMat
\&
a, const GpuMat
\&
b, GpuMat
\&
c);
}
\begin{description}
\cvarg
{
a
}{
First source matrix. 8UC1, 8UC4, 32SC1 and 32FC2 matrices are supported for now.
}
\cvarg
{
b
}{
Second source matrix. Must have the same size and type as
\texttt
{
a
}
.
}
\cvarg
{
c
}{
Destionation matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
\cvdefCpp
{
void divide(const GpuMat
\&
a, const Scalar
\&
sc, GpuMat
\&
c);
}
\begin{description}
\cvarg
{
a
}{
Source matrix. 32FC1 and 32FC2 matrixes are supported for now.
}
\cvarg
{
b
}{
Scalar to be divided by.
}
\cvarg
{
c
}{
Destination matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
See also:
\cvCppCross
{
divide
}
.
\cvCppFunc
{
gpu::exp
}
Computes exponent of each matrix element.
\cvdefCpp
{
void exp(const GpuMat
\&
a, GpuMat
\&
b);
}
\begin{description}
\cvarg
{
a
}{
Source matrix. 32FC1 matrixes are supported for now.
}
\cvarg
{
b
}{
Destination matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
See also:
\cvCppCross
{
exp
}
.
\cvCppFunc
{
gpu::log
}
Computes natural logarithm of absolute value of each matrix element.
\cvdefCpp
{
void log(const GpuMat
\&
a, GpuMat
\&
b);
}
\begin{description}
\cvarg
{
a
}{
Source matrix. 32FC1 matrixes are supported for now.
}
\cvarg
{
b
}{
Destination matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
See also:
\cvCppCross
{
log
}
.
\cvCppFunc
{
gpu::absdiff
}
Computes per-element absolute difference of two matrices (or of matrix and scalar).
\cvdefCpp
{
void absdiff(const GpuMat
\&
a, const GpuMat
\&
b, GpuMat
\&
c);
}
\begin{description}
\cvarg
{
a
}{
First source matrix. 8UC1, 8UC4, 32SC1 and 32FC2 matrices are supported for now.
}
\cvarg
{
b
}{
Second source matrix. Must have the same size and type as
\texttt
{
a
}
.
}
\cvarg
{
c
}{
Destionation matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
\cvdefCpp
{
void absdiff(const GpuMat
\&
a, const Scalar
\&
s, GpuMat
\&
c);
}
\begin{description}
\cvarg
{
a
}{
Source matrix. 32FC1 matrixes are supported for now.
}
\cvarg
{
b
}{
Scalar to be multiplied by.
}
\cvarg
{
c
}{
Destination matrix. Will have the same size and type as
\texttt
{
a
}
.
}
\end{description}
See also:
\cvCppCross
{
absdiff
}
.
\cvCppFunc
{
gpu::compare
}
Compares elements of two matrices.
\cvdefCpp
{
void compare(const GpuMat
\&
a, const GpuMat
\&
b, GpuMat
\&
c, int cmpop);
}
\begin{description}
\cvarg
{
a
}{
First source matrix. 8UC4 and 32FC1 matrices are supported for now.
}
\cvarg
{
b
}{
Second source matrix. Must have the same size and type as
\texttt
{
a
}
.
}
\cvarg
{
c
}{
Destination matrix. Will have the same size as
\texttt
{
a
}
and be 8UC1 type.
}
\cvarg
{
cmpop
}{
Flag specifying the relation between the elements to be checked:
\begin{description}
\cvarg
{
CMP
\_
EQ
}{$
=
$}
\cvarg
{
CMP
\_
GT
}{$
>
$}
\cvarg
{
CMP
\_
GE
}{$
\ge
$}
\cvarg
{
CMP
\_
LT
}{$
<
$}
\cvarg
{
CMP
\_
LE
}{$
\le
$}
\cvarg
{
CMP
\_
NE
}{$
\ne
$}
\end{description}
}
\end{description}
See also:
\cvCppCross
{
compare
}
.
\cvfunc
{
cv::gpu::bitwise
\_
not
}
\label
{
cppfunc.gpu.bitwise.not
}
Performs per-element bitwise inversion.
...
...
@@ -93,4 +220,56 @@ void bitwise\_xor(const GpuMat\& src1, const GpuMat\& src2, GpuMat\& dst,\par
\cvarg
{
stream
}{
Stream for the asynchronous version.
}
\end{description}
See also:
\hyperref
[cppfunc.bitwise.xor]
{
cv::bitwise
\_
xor
}
.
\ No newline at end of file
See also:
\hyperref
[cppfunc.bitwise.xor]
{
cv::bitwise
\_
xor
}
.
\cvCppFunc
{
gpu::min
}
Computes per-element minimum of two matrices (or of matrix and scalar).
\cvdefCpp
{
void min(const GpuMat
\&
src1, const GpuMat
\&
src2, GpuMat
\&
dst);
\newline
void min(const GpuMat
\&
src1, const GpuMat
\&
src2, GpuMat
\&
dst,
\par
const Stream
\&
stream);
}
\begin{description}
\cvarg
{
src1
}{
First source matrix.
}
\cvarg
{
src2
}{
Second source matrix.
}
\cvarg
{
dst
}{
Destination matrix. Will have the same size and type as
\texttt
{
src1
}
.
}
\cvarg
{
stream
}{
Stream for the asynchronous version.
}
\end{description}
\cvdefCpp
{
void min(const GpuMat
\&
src1, double src2, GpuMat
\&
dst);
\newline
void min(const GpuMat
\&
src1, double src2, GpuMat
\&
dst,
\par
const Stream
\&
stream);
}
\begin{description}
\cvarg
{
src1
}{
Source matrix.
}
\cvarg
{
src2
}{
Scalar to be compared with.
}
\cvarg
{
dst
}{
Destination matrix. Will have the same size and type as
\texttt
{
src1
}
.
}
\cvarg
{
stream
}{
Stream for the asynchronous version.
}
\end{description}
See also:
\cvCppCross
{
min
}
.
\cvCppFunc
{
gpu::max
}
Computes per-element maximum of two matrices (or of matrix and scalar).
\cvdefCpp
{
void max(const GpuMat
\&
src1, const GpuMat
\&
src2, GpuMat
\&
dst);
\newline
void max(const GpuMat
\&
src1, const GpuMat
\&
src2, GpuMat
\&
dst,
\par
const Stream
\&
stream);
}
\begin{description}
\cvarg
{
src1
}{
First source matrix.
}
\cvarg
{
src2
}{
Second source matrix.
}
\cvarg
{
dst
}{
Destination matrix. Will have the same size and type as
\texttt
{
src1
}
.
}
\cvarg
{
stream
}{
Stream for the asynchronous version.
}
\end{description}
\cvdefCpp
{
void max(const GpuMat
\&
src1, double src2, GpuMat
\&
dst);
\newline
void max(const GpuMat
\&
src1, double src2, GpuMat
\&
dst,
\par
const Stream
\&
stream);
}
\begin{description}
\cvarg
{
src1
}{
Source matrix.
}
\cvarg
{
src2
}{
Scalar to be compared with.
}
\cvarg
{
dst
}{
Destination matrix. Will have the same size and type as
\texttt
{
src1
}
.
}
\cvarg
{
stream
}{
Stream for the asynchronous version.
}
\end{description}
See also:
\cvCppCross
{
max
}
.
\ No newline at end of file
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