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
d2cacac0
Commit
d2cacac0
authored
Sep 24, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15573 from alalek:build_cxx11_warnings
parents
c2096771
c8abf2ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
cvdef.h
modules/core/include/opencv2/core/cvdef.h
+7
-0
camera.cpp
modules/stitching/src/camera.cpp
+1
-1
global_motion.cpp
modules/videostab/src/global_motion.cpp
+8
-8
No files found.
modules/core/include/opencv2/core/cvdef.h
View file @
d2cacac0
...
...
@@ -588,6 +588,13 @@ Cv64suf;
# endif
#endif
#ifdef CV_CXX_MOVE_SEMANTICS
#define CV_CXX_MOVE(x) std::move(x)
#else
#define CV_CXX_MOVE(x) (x)
#endif
/****************************************************************************************\
* C++11 std::array *
\****************************************************************************************/
...
...
modules/stitching/src/camera.cpp
View file @
d2cacac0
...
...
@@ -66,7 +66,7 @@ Mat CameraParams::K() const
Mat_
<
double
>
k
=
Mat
::
eye
(
3
,
3
,
CV_64F
);
k
(
0
,
0
)
=
focal
;
k
(
0
,
2
)
=
ppx
;
k
(
1
,
1
)
=
focal
*
aspect
;
k
(
1
,
2
)
=
ppy
;
return
k
;
return
CV_CXX_MOVE
(
k
)
;
}
}
// namespace detail
...
...
modules/videostab/src/global_motion.cpp
View file @
d2cacac0
...
...
@@ -113,7 +113,7 @@ static Mat normalizePoints(int npoints, Point2f *points)
T
(
0
,
0
)
=
T
(
1
,
1
)
=
s
;
T
(
0
,
2
)
=
-
cx
*
s
;
T
(
1
,
2
)
=
-
cy
*
s
;
return
T
;
return
CV_CXX_MOVE
(
T
)
;
}
...
...
@@ -138,7 +138,7 @@ static Mat estimateGlobMotionLeastSquaresTranslation(
*
rmse
=
std
::
sqrt
(
*
rmse
/
npoints
);
}
return
M
;
return
CV_CXX_MOVE
(
M
)
;
}
...
...
@@ -219,7 +219,7 @@ static Mat estimateGlobMotionLeastSquaresRotation(
*
rmse
=
std
::
sqrt
(
*
rmse
/
npoints
);
}
return
M
;
return
CV_CXX_MOVE
(
M
)
;
}
static
Mat
estimateGlobMotionLeastSquaresRigid
(
...
...
@@ -273,7 +273,7 @@ static Mat estimateGlobMotionLeastSquaresRigid(
*
rmse
=
std
::
sqrt
(
*
rmse
/
npoints
);
}
return
M
;
return
CV_CXX_MOVE
(
M
)
;
}
...
...
@@ -484,7 +484,7 @@ Mat estimateGlobalMotionRansac(
if
(
ninliers
)
*
ninliers
=
ninliersMax
;
return
bestM
;
return
CV_CXX_MOVE
(
bestM
)
;
}
...
...
@@ -527,7 +527,7 @@ Mat MotionEstimatorRansacL2::estimate(InputArray points0, InputArray points1, bo
if
(
ok
)
*
ok
=
false
;
}
return
M
;
return
CV_CXX_MOVE
(
M
)
;
}
...
...
@@ -681,7 +681,7 @@ Mat FromFileMotionReader::estimate(const Mat &/*frame0*/, const Mat &/*frame1*/,
>>
M
(
1
,
0
)
>>
M
(
1
,
1
)
>>
M
(
1
,
2
)
>>
M
(
2
,
0
)
>>
M
(
2
,
1
)
>>
M
(
2
,
2
)
>>
ok_
;
if
(
ok
)
*
ok
=
ok_
;
return
M
;
return
CV_CXX_MOVE
(
M
)
;
}
...
...
@@ -701,7 +701,7 @@ Mat ToFileMotionWriter::estimate(const Mat &frame0, const Mat &frame1, bool *ok)
<<
M
(
1
,
0
)
<<
" "
<<
M
(
1
,
1
)
<<
" "
<<
M
(
1
,
2
)
<<
" "
<<
M
(
2
,
0
)
<<
" "
<<
M
(
2
,
1
)
<<
" "
<<
M
(
2
,
2
)
<<
" "
<<
ok_
<<
std
::
endl
;
if
(
ok
)
*
ok
=
ok_
;
return
M
;
return
CV_CXX_MOVE
(
M
)
;
}
...
...
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