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
23699acc
Commit
23699acc
authored
Oct 07, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for bug 2264
fix compilation OpenCV with cxx11 under Ubuntu with clang and gcc 4.7
parent
2ec26430
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
22 deletions
+30
-22
spinimages.cpp
modules/contrib/src/spinimages.cpp
+3
-0
perf_calib3d.cpp
modules/gpu/perf/perf_calib3d.cpp
+13
-22
ts_gtest.h
modules/ts/include/opencv2/ts/ts_gtest.h
+14
-0
No files found.
modules/contrib/src/spinimages.cpp
View file @
23699acc
...
...
@@ -85,7 +85,10 @@ namespace
};
size_t
colors_mum
=
sizeof
(
colors
)
/
sizeof
(
colors
[
0
]);
#if defined __cplusplus && __cplusplus > 199711L
#else
template
<
class
FwIt
,
class
T
>
void
iota
(
FwIt
first
,
FwIt
last
,
T
value
)
{
while
(
first
!=
last
)
*
first
++
=
value
++
;
}
#endif
void
computeNormals
(
const
Octree
&
Octree
,
const
vector
<
Point3f
>&
centers
,
vector
<
Point3f
>&
normals
,
vector
<
uchar
>&
mask
,
float
normalRadius
,
int
minNeighbors
=
20
)
...
...
modules/gpu/perf/perf_calib3d.cpp
View file @
23699acc
...
...
@@ -8,26 +8,17 @@ namespace {
//////////////////////////////////////////////////////////////////////
// StereoBM
typedef
pair
<
string
,
string
>
pair_string
;
typedef
std
::
tr1
::
tuple
<
string
,
string
>
pair_string
;
DEF_PARAM_TEST_1
(
ImagePair
,
pair_string
);
static
pair_string
make_string_pair
(
const
string
&
a
,
const
string
&
b
)
{
#ifdef _MSC_VER
return
pair
<
string
,
string
>
(
a
,
b
);
#else
return
make_pair
<
string
,
string
>
(
a
,
b
);
#endif
}
PERF_TEST_P
(
ImagePair
,
Calib3D_StereoBM
,
Values
(
make_string_pair
(
"gpu/perf/aloe.png"
,
"gpu/perf/aloeR.png"
)))
PERF_TEST_P
(
ImagePair
,
Calib3D_StereoBM
,
Values
(
pair_string
(
"gpu/perf/aloe.png"
,
"gpu/perf/aloeR.png"
)))
{
declare
.
time
(
5.0
);
const
cv
::
Mat
imgLeft
=
readImage
(
G
etParam
().
first
,
cv
::
IMREAD_GRAYSCALE
);
const
cv
::
Mat
imgLeft
=
readImage
(
G
ET_PARAM
(
0
)
,
cv
::
IMREAD_GRAYSCALE
);
ASSERT_FALSE
(
imgLeft
.
empty
());
const
cv
::
Mat
imgRight
=
readImage
(
G
etParam
().
second
,
cv
::
IMREAD_GRAYSCALE
);
const
cv
::
Mat
imgRight
=
readImage
(
G
ET_PARAM
(
1
)
,
cv
::
IMREAD_GRAYSCALE
);
ASSERT_FALSE
(
imgRight
.
empty
());
const
int
preset
=
0
;
...
...
@@ -66,14 +57,14 @@ PERF_TEST_P(ImagePair, Calib3D_StereoBM, Values(make_string_pair("gpu/perf/aloe.
//////////////////////////////////////////////////////////////////////
// StereoBeliefPropagation
PERF_TEST_P
(
ImagePair
,
Calib3D_StereoBeliefPropagation
,
Values
(
make_string_pair
(
"gpu/stereobp/aloe-L.png"
,
"gpu/stereobp/aloe-R.png"
)))
PERF_TEST_P
(
ImagePair
,
Calib3D_StereoBeliefPropagation
,
Values
(
pair_string
(
"gpu/stereobp/aloe-L.png"
,
"gpu/stereobp/aloe-R.png"
)))
{
declare
.
time
(
10.0
);
const
cv
::
Mat
imgLeft
=
readImage
(
G
etParam
().
first
);
const
cv
::
Mat
imgLeft
=
readImage
(
G
ET_PARAM
(
0
)
);
ASSERT_FALSE
(
imgLeft
.
empty
());
const
cv
::
Mat
imgRight
=
readImage
(
G
etParam
().
second
);
const
cv
::
Mat
imgRight
=
readImage
(
G
ET_PARAM
(
1
)
);
ASSERT_FALSE
(
imgRight
.
empty
());
const
int
ndisp
=
64
;
...
...
@@ -102,14 +93,14 @@ PERF_TEST_P(ImagePair, Calib3D_StereoBeliefPropagation, Values(make_string_pair(
//////////////////////////////////////////////////////////////////////
// StereoConstantSpaceBP
PERF_TEST_P
(
ImagePair
,
Calib3D_StereoConstantSpaceBP
,
Values
(
make_string_pair
(
"gpu/stereobm/aloe-L.png"
,
"gpu/stereobm/aloe-R.png"
)))
PERF_TEST_P
(
ImagePair
,
Calib3D_StereoConstantSpaceBP
,
Values
(
pair_string
(
"gpu/stereobm/aloe-L.png"
,
"gpu/stereobm/aloe-R.png"
)))
{
declare
.
time
(
10.0
);
const
cv
::
Mat
imgLeft
=
readImage
(
G
etParam
().
first
,
cv
::
IMREAD_GRAYSCALE
);
const
cv
::
Mat
imgLeft
=
readImage
(
G
ET_PARAM
(
0
)
,
cv
::
IMREAD_GRAYSCALE
);
ASSERT_FALSE
(
imgLeft
.
empty
());
const
cv
::
Mat
imgRight
=
readImage
(
G
etParam
().
second
,
cv
::
IMREAD_GRAYSCALE
);
const
cv
::
Mat
imgRight
=
readImage
(
G
ET_PARAM
(
1
)
,
cv
::
IMREAD_GRAYSCALE
);
ASSERT_FALSE
(
imgRight
.
empty
());
const
int
ndisp
=
128
;
...
...
@@ -138,12 +129,12 @@ PERF_TEST_P(ImagePair, Calib3D_StereoConstantSpaceBP, Values(make_string_pair("g
//////////////////////////////////////////////////////////////////////
// DisparityBilateralFilter
PERF_TEST_P
(
ImagePair
,
Calib3D_DisparityBilateralFilter
,
Values
(
make_string_pair
(
"gpu/stereobm/aloe-L.png"
,
"gpu/stereobm/aloe-disp.png"
)))
PERF_TEST_P
(
ImagePair
,
Calib3D_DisparityBilateralFilter
,
Values
(
pair_string
(
"gpu/stereobm/aloe-L.png"
,
"gpu/stereobm/aloe-disp.png"
)))
{
const
cv
::
Mat
img
=
readImage
(
G
etParam
().
first
,
cv
::
IMREAD_GRAYSCALE
);
const
cv
::
Mat
img
=
readImage
(
G
ET_PARAM
(
0
)
,
cv
::
IMREAD_GRAYSCALE
);
ASSERT_FALSE
(
img
.
empty
());
const
cv
::
Mat
disp
=
readImage
(
G
etParam
().
second
,
cv
::
IMREAD_GRAYSCALE
);
const
cv
::
Mat
disp
=
readImage
(
G
ET_PARAM
(
1
)
,
cv
::
IMREAD_GRAYSCALE
);
ASSERT_FALSE
(
disp
.
empty
());
const
int
ndisp
=
128
;
...
...
modules/ts/include/opencv2/ts/ts_gtest.h
View file @
23699acc
...
...
@@ -1654,7 +1654,21 @@ inline bool operator!=(const GTEST_10_TUPLE_(T)& t,
# undef _TR1_FUNCTIONAL // Allows the user to #include
// <tr1/functional> if he chooses to.
# else
# if defined (__cplusplus) && __cplusplus > 199711L
# include <tuple>
namespace
std
{
namespace
tr1
{
using
std
::
tuple
;
using
std
::
tuple_element
;
using
std
::
get
;
using
std
::
tuple_size
;
using
std
::
make_tuple
;
}
}
# else
# include <tr1/tuple> // NOLINT
# endif
# endif // !GTEST_HAS_RTTI && GTEST_GCC_VER_ < 40302
# else
...
...
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