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
6b345329
Commit
6b345329
authored
Feb 15, 2011
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor + warnings
parent
f10bff26
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
13 deletions
+28
-13
gpu_initialization.tex
doc/gpu_initialization.tex
+1
-1
chamfermatching.cpp
modules/contrib/src/chamfermatching.cpp
+12
-1
gpu.hpp
modules/gpu/include/opencv2/gpu/gpu.hpp
+1
-1
brute_force_matcher.cpp
modules/gpu/src/brute_force_matcher.cpp
+1
-1
matrix_reductions.cpp
modules/gpu/src/matrix_reductions.cpp
+8
-8
NCVRuntimeTemplates.hpp
modules/gpu/src/nvidia/core/NCVRuntimeTemplates.hpp
+4
-0
surf.cpp
modules/gpu/src/surf.cpp
+1
-1
No files found.
doc/gpu_initialization.tex
View file @
6b345329
...
...
@@ -31,7 +31,7 @@ enum FeatureSet
FEATURE
_
SET
_
COMPUTE
_
10, FEATURE
_
SET
_
COMPUTE
_
11,
FEATURE
_
SET
_
COMPUTE
_
12, FEATURE
_
SET
_
COMPUTE
_
13,
FEATURE
_
SET
_
COMPUTE
_
20, FEATURE
_
SET
_
COMPUTE
_
21,
ATOMICS, NATIVE
_
DOUBLE
GLOBAL
_
ATOMICS, NATIVE
_
DOUBLE
}
;
\end{lstlisting}
...
...
modules/contrib/src/chamfermatching.cpp
View file @
6b345329
...
...
@@ -111,6 +111,9 @@ private:
int
scales_
;
float
min_scale_
;
float
max_scale_
;
LocationImageRange
(
const
LocationImageRange
&
);
LocationImageRange
&
operator
=
(
const
LocationImageRange
&
);
public
:
LocationImageRange
(
const
vector
<
Point
>&
locations
,
int
scales
=
5
,
float
min_scale
=
0.6
,
float
max_scale
=
1.6
)
:
...
...
@@ -130,6 +133,8 @@ private:
const
vector
<
Point
>&
locations_
;
const
vector
<
float
>&
scales_
;
LocationScaleImageRange
(
const
LocationScaleImageRange
&
);
LocationScaleImageRange
&
operator
=
(
const
LocationScaleImageRange
&
);
public
:
LocationScaleImageRange
(
const
vector
<
Point
>&
locations
,
const
vector
<
float
>&
scales
)
:
locations_
(
locations
),
scales_
(
scales
)
...
...
@@ -355,6 +360,9 @@ private:
int
scale_cnt_
;
bool
has_next_
;
LocationImageIterator
(
const
LocationImageIterator
&
);
LocationImageIterator
&
operator
=
(
const
LocationImageIterator
&
);
public
:
LocationImageIterator
(
const
vector
<
Point
>&
locations
,
int
scales
,
float
min_scale
,
float
max_scale
);
...
...
@@ -374,6 +382,9 @@ private:
size_t
iter_
;
bool
has_next_
;
LocationScaleImageIterator
(
const
LocationScaleImageIterator
&
);
LocationScaleImageIterator
&
operator
=
(
const
LocationScaleImageIterator
&
);
public
:
LocationScaleImageIterator
(
const
vector
<
Point
>&
locations
,
const
vector
<
float
>&
scales
)
:
...
...
@@ -714,7 +725,7 @@ float ChamferMatcher::Matching::getAngle(coordinate_t a, coordinate_t b, int& dx
float
angle
=
atan2
((
float
)
dy
,(
float
)
dx
);
if
(
angle
<
0
)
{
angle
+=
CV_PI
;
angle
+=
(
float
)
CV_PI
;
}
return
angle
;
...
...
modules/gpu/include/opencv2/gpu/gpu.hpp
View file @
6b345329
...
...
@@ -72,7 +72,7 @@ namespace cv
FEATURE_SET_COMPUTE_13
=
13
,
FEATURE_SET_COMPUTE_20
=
20
,
FEATURE_SET_COMPUTE_21
=
21
,
ATOMICS
=
FEATURE_SET_COMPUTE_11
,
GLOBAL_
ATOMICS
=
FEATURE_SET_COMPUTE_11
,
NATIVE_DOUBLE
=
FEATURE_SET_COMPUTE_13
};
...
...
modules/gpu/src/brute_force_matcher.cpp
View file @
6b345329
...
...
@@ -542,7 +542,7 @@ void cv::gpu::BruteForceMatcher_GPU_base::radiusMatch(const GpuMat& queryDescs,
}
};
CV_Assert
(
DeviceInfo
().
supports
(
ATOMICS
));
CV_Assert
(
DeviceInfo
().
supports
(
GLOBAL_
ATOMICS
));
const
int
nQuery
=
queryDescs
.
rows
;
const
int
nTrain
=
trainDescs
.
rows
;
...
...
modules/gpu/src/matrix_reductions.cpp
View file @
6b345329
...
...
@@ -201,7 +201,7 @@ Scalar cv::gpu::sum(const GpuMat& src, GpuMat& buf)
ensureSizeIsEnough
(
buf_size
,
CV_8U
,
buf
);
Caller
*
callers
=
multipass_callers
;
if
(
TargetArchs
::
builtWith
(
ATOMICS
)
&&
DeviceInfo
().
supports
(
ATOMICS
))
if
(
TargetArchs
::
builtWith
(
GLOBAL_ATOMICS
)
&&
DeviceInfo
().
supports
(
GLOBAL_
ATOMICS
))
callers
=
singlepass_callers
;
Caller
caller
=
callers
[
src
.
depth
()];
...
...
@@ -242,7 +242,7 @@ Scalar cv::gpu::absSum(const GpuMat& src, GpuMat& buf)
ensureSizeIsEnough
(
buf_size
,
CV_8U
,
buf
);
Caller
*
callers
=
multipass_callers
;
if
(
TargetArchs
::
builtWith
(
ATOMICS
)
&&
DeviceInfo
().
supports
(
ATOMICS
))
if
(
TargetArchs
::
builtWith
(
GLOBAL_ATOMICS
)
&&
DeviceInfo
().
supports
(
GLOBAL_
ATOMICS
))
callers
=
singlepass_callers
;
Caller
caller
=
callers
[
src
.
depth
()];
...
...
@@ -278,7 +278,7 @@ Scalar cv::gpu::sqrSum(const GpuMat& src, GpuMat& buf)
sqrSumCaller
<
int
>
,
sqrSumCaller
<
float
>
,
0
};
Caller
*
callers
=
multipass_callers
;
if
(
TargetArchs
::
builtWith
(
ATOMICS
)
&&
DeviceInfo
().
supports
(
ATOMICS
))
if
(
TargetArchs
::
builtWith
(
GLOBAL_ATOMICS
)
&&
DeviceInfo
().
supports
(
GLOBAL_
ATOMICS
))
callers
=
singlepass_callers
;
Size
buf_size
;
...
...
@@ -371,7 +371,7 @@ void cv::gpu::minMax(const GpuMat& src, double* minVal, double* maxVal, const Gp
if
(
mask
.
empty
())
{
Caller
*
callers
=
multipass_callers
;
if
(
TargetArchs
::
builtWith
(
ATOMICS
)
&&
DeviceInfo
().
supports
(
ATOMICS
))
if
(
TargetArchs
::
builtWith
(
GLOBAL_ATOMICS
)
&&
DeviceInfo
().
supports
(
GLOBAL_
ATOMICS
))
callers
=
singlepass_callers
;
Caller
caller
=
callers
[
src
.
type
()];
...
...
@@ -381,7 +381,7 @@ void cv::gpu::minMax(const GpuMat& src, double* minVal, double* maxVal, const Gp
else
{
MaskedCaller
*
callers
=
masked_multipass_callers
;
if
(
TargetArchs
::
builtWith
(
ATOMICS
)
&&
DeviceInfo
().
supports
(
ATOMICS
))
if
(
TargetArchs
::
builtWith
(
GLOBAL_ATOMICS
)
&&
DeviceInfo
().
supports
(
GLOBAL_
ATOMICS
))
callers
=
masked_singlepass_callers
;
MaskedCaller
caller
=
callers
[
src
.
type
()];
...
...
@@ -474,7 +474,7 @@ void cv::gpu::minMaxLoc(const GpuMat& src, double* minVal, double* maxVal, Point
if
(
mask
.
empty
())
{
Caller
*
callers
=
multipass_callers
;
if
(
TargetArchs
::
builtWith
(
ATOMICS
)
&&
DeviceInfo
().
supports
(
ATOMICS
))
if
(
TargetArchs
::
builtWith
(
GLOBAL_ATOMICS
)
&&
DeviceInfo
().
supports
(
GLOBAL_
ATOMICS
))
callers
=
singlepass_callers
;
Caller
caller
=
callers
[
src
.
type
()];
...
...
@@ -484,7 +484,7 @@ void cv::gpu::minMaxLoc(const GpuMat& src, double* minVal, double* maxVal, Point
else
{
MaskedCaller
*
callers
=
masked_multipass_callers
;
if
(
TargetArchs
::
builtWith
(
ATOMICS
)
&&
DeviceInfo
().
supports
(
ATOMICS
))
if
(
TargetArchs
::
builtWith
(
GLOBAL_ATOMICS
)
&&
DeviceInfo
().
supports
(
GLOBAL_
ATOMICS
))
callers
=
masked_singlepass_callers
;
MaskedCaller
caller
=
callers
[
src
.
type
()];
...
...
@@ -546,7 +546,7 @@ int cv::gpu::countNonZero(const GpuMat& src, GpuMat& buf)
ensureSizeIsEnough
(
buf_size
,
CV_8U
,
buf
);
Caller
*
callers
=
multipass_callers
;
if
(
TargetArchs
::
builtWith
(
ATOMICS
)
&&
DeviceInfo
().
supports
(
ATOMICS
))
if
(
TargetArchs
::
builtWith
(
GLOBAL_ATOMICS
)
&&
DeviceInfo
().
supports
(
GLOBAL_
ATOMICS
))
callers
=
singlepass_callers
;
Caller
caller
=
callers
[
src
.
type
()];
...
...
modules/gpu/src/nvidia/core/NCVRuntimeTemplates.hpp
View file @
6b345329
...
...
@@ -41,6 +41,10 @@
#ifndef _ncvruntimetemplates_hpp_
#define _ncvruntimetemplates_hpp_
#if _MSC_VER >= 1200
#pragma warning( disable: 4800 )
#endif
#include <stdarg.h>
#include <vector>
...
...
modules/gpu/src/surf.cpp
View file @
6b345329
...
...
@@ -108,7 +108,7 @@ namespace
CV_Assert
(
!
img
.
empty
()
&&
img
.
type
()
==
CV_8UC1
);
CV_Assert
(
mask
.
empty
()
||
(
mask
.
size
()
==
img
.
size
()
&&
mask
.
type
()
==
CV_8UC1
));
CV_Assert
(
nOctaves
>
0
&&
nIntervals
>
2
&&
nIntervals
<
22
);
CV_Assert
(
DeviceInfo
().
supports
(
ATOMICS
));
CV_Assert
(
DeviceInfo
().
supports
(
GLOBAL_
ATOMICS
));
max_features
=
static_cast
<
int
>
(
img
.
size
().
area
()
*
featuresRatio
);
max_candidates
=
static_cast
<
int
>
(
1.5
*
max_features
);
...
...
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