Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
5d0a1283
Commit
5d0a1283
authored
Mar 21, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rgbd: apply CV_OVERRIDE/CV_FINAL
parent
3dd79d68
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
43 deletions
+43
-43
rgbd.hpp
modules/rgbd/include/opencv2/rgbd.hpp
+22
-22
linemod.hpp
modules/rgbd/include/opencv2/rgbd/linemod.hpp
+8
-8
depth_cleaner.cpp
modules/rgbd/src/depth_cleaner.cpp
+1
-1
linemod.cpp
modules/rgbd/src/linemod.cpp
+6
-6
normal.cpp
modules/rgbd/src/normal.cpp
+3
-3
plane.cpp
modules/rgbd/src/plane.cpp
+3
-3
No files found.
modules/rgbd/include/opencv2/rgbd.hpp
View file @
5d0a1283
...
...
@@ -514,7 +514,7 @@ namespace rgbd
CV_WRAP
static
Ptr
<
OdometryFrame
>
create
(
const
Mat
&
image
=
Mat
(),
const
Mat
&
depth
=
Mat
(),
const
Mat
&
mask
=
Mat
(),
const
Mat
&
normals
=
Mat
(),
int
ID
=-
1
);
CV_WRAP
virtual
void
release
();
release
()
CV_OVERRIDE
;
CV_WRAP
void
releasePyramids
();
...
...
@@ -661,13 +661,13 @@ namespace rgbd
const
std
::
vector
<
float
>&
minGradientMagnitudes
=
std
::
vector
<
float
>
(),
float
maxPointsPart
=
Odometry
::
DEFAULT_MAX_POINTS_PART
(),
int
transformType
=
Odometry
::
RIGID_BODY_MOTION
);
CV_WRAP
virtual
Size
prepareFrameCache
(
Ptr
<
OdometryFrame
>&
frame
,
int
cacheType
)
const
;
CV_WRAP
virtual
Size
prepareFrameCache
(
Ptr
<
OdometryFrame
>&
frame
,
int
cacheType
)
const
CV_OVERRIDE
;
CV_WRAP
cv
::
Mat
getCameraMatrix
()
const
CV_WRAP
cv
::
Mat
getCameraMatrix
()
const
CV_OVERRIDE
{
return
cameraMatrix
;
}
CV_WRAP
void
setCameraMatrix
(
const
cv
::
Mat
&
val
)
CV_WRAP
void
setCameraMatrix
(
const
cv
::
Mat
&
val
)
CV_OVERRIDE
{
cameraMatrix
=
val
;
}
...
...
@@ -719,11 +719,11 @@ namespace rgbd
{
maxPointsPart
=
val
;
}
CV_WRAP
int
getTransformType
()
const
CV_WRAP
int
getTransformType
()
const
CV_OVERRIDE
{
return
transformType
;
}
CV_WRAP
void
setTransformType
(
int
val
)
CV_WRAP
void
setTransformType
(
int
val
)
CV_OVERRIDE
{
transformType
=
val
;
}
...
...
@@ -746,11 +746,11 @@ namespace rgbd
protected
:
virtual
void
checkParams
()
const
;
checkParams
()
const
CV_OVERRIDE
;
virtual
bool
computeImpl
(
const
Ptr
<
OdometryFrame
>&
srcFrame
,
const
Ptr
<
OdometryFrame
>&
dstFrame
,
OutputArray
Rt
,
const
Mat
&
initRt
)
const
;
const
Mat
&
initRt
)
const
CV_OVERRIDE
;
// Some params have commented desired type. It's due to AlgorithmInfo::addParams does not support it now.
/*float*/
...
...
@@ -792,13 +792,13 @@ namespace rgbd
float
maxDepthDiff
=
Odometry
::
DEFAULT_MAX_DEPTH_DIFF
(),
float
maxPointsPart
=
Odometry
::
DEFAULT_MAX_POINTS_PART
(),
const
std
::
vector
<
int
>&
iterCounts
=
std
::
vector
<
int
>
(),
int
transformType
=
Odometry
::
RIGID_BODY_MOTION
);
CV_WRAP
virtual
Size
prepareFrameCache
(
Ptr
<
OdometryFrame
>&
frame
,
int
cacheType
)
const
;
CV_WRAP
virtual
Size
prepareFrameCache
(
Ptr
<
OdometryFrame
>&
frame
,
int
cacheType
)
const
CV_OVERRIDE
;
CV_WRAP
cv
::
Mat
getCameraMatrix
()
const
CV_WRAP
cv
::
Mat
getCameraMatrix
()
const
CV_OVERRIDE
{
return
cameraMatrix
;
}
CV_WRAP
void
setCameraMatrix
(
const
cv
::
Mat
&
val
)
CV_WRAP
void
setCameraMatrix
(
const
cv
::
Mat
&
val
)
CV_OVERRIDE
{
cameraMatrix
=
val
;
}
...
...
@@ -842,11 +842,11 @@ namespace rgbd
{
maxPointsPart
=
val
;
}
CV_WRAP
int
getTransformType
()
const
CV_WRAP
int
getTransformType
()
const
CV_OVERRIDE
{
return
transformType
;
}
CV_WRAP
void
setTransformType
(
int
val
)
CV_WRAP
void
setTransformType
(
int
val
)
CV_OVERRIDE
{
transformType
=
val
;
}
...
...
@@ -873,11 +873,11 @@ namespace rgbd
protected
:
virtual
void
checkParams
()
const
;
checkParams
()
const
CV_OVERRIDE
;
virtual
bool
computeImpl
(
const
Ptr
<
OdometryFrame
>&
srcFrame
,
const
Ptr
<
OdometryFrame
>&
dstFrame
,
OutputArray
Rt
,
const
Mat
&
initRt
)
const
;
const
Mat
&
initRt
)
const
CV_OVERRIDE
;
// Some params have commented desired type. It's due to AlgorithmInfo::addParams does not support it now.
/*float*/
...
...
@@ -926,13 +926,13 @@ namespace rgbd
const
std
::
vector
<
float
>&
minGradientMagnitudes
=
std
::
vector
<
float
>
(),
int
transformType
=
Odometry
::
RIGID_BODY_MOTION
);
CV_WRAP
virtual
Size
prepareFrameCache
(
Ptr
<
OdometryFrame
>&
frame
,
int
cacheType
)
const
;
CV_WRAP
virtual
Size
prepareFrameCache
(
Ptr
<
OdometryFrame
>&
frame
,
int
cacheType
)
const
CV_OVERRIDE
;
CV_WRAP
cv
::
Mat
getCameraMatrix
()
const
CV_WRAP
cv
::
Mat
getCameraMatrix
()
const
CV_OVERRIDE
{
return
cameraMatrix
;
}
CV_WRAP
void
setCameraMatrix
(
const
cv
::
Mat
&
val
)
CV_WRAP
void
setCameraMatrix
(
const
cv
::
Mat
&
val
)
CV_OVERRIDE
{
cameraMatrix
=
val
;
}
...
...
@@ -984,11 +984,11 @@ namespace rgbd
{
minGradientMagnitudes
=
val
;
}
CV_WRAP
int
getTransformType
()
const
CV_WRAP
int
getTransformType
()
const
CV_OVERRIDE
{
return
transformType
;
}
CV_WRAP
void
setTransformType
(
int
val
)
CV_WRAP
void
setTransformType
(
int
val
)
CV_OVERRIDE
{
transformType
=
val
;
}
...
...
@@ -1015,11 +1015,11 @@ namespace rgbd
protected
:
virtual
void
checkParams
()
const
;
checkParams
()
const
CV_OVERRIDE
;
virtual
bool
computeImpl
(
const
Ptr
<
OdometryFrame
>&
srcFrame
,
const
Ptr
<
OdometryFrame
>&
dstFrame
,
OutputArray
Rt
,
const
Mat
&
initRt
)
const
;
const
Mat
&
initRt
)
const
CV_OVERRIDE
;
// Some params have commented desired type. It's due to AlgorithmInfo::addParams does not support it now.
/*float*/
...
...
modules/rgbd/include/opencv2/rgbd/linemod.hpp
View file @
5d0a1283
...
...
@@ -218,10 +218,10 @@ public:
*/
ColorGradient
(
float
weak_threshold
,
size_t
num_features
,
float
strong_threshold
);
virtual
String
name
()
const
;
virtual
String
name
()
const
CV_OVERRIDE
;
virtual
void
read
(
const
FileNode
&
fn
);
virtual
void
write
(
FileStorage
&
fs
)
const
;
virtual
void
read
(
const
FileNode
&
fn
)
CV_OVERRIDE
;
virtual
void
write
(
FileStorage
&
fs
)
const
CV_OVERRIDE
;
float
weak_threshold
;
size_t
num_features
;
...
...
@@ -229,7 +229,7 @@ public:
protected
:
virtual
Ptr
<
QuantizedPyramid
>
processImpl
(
const
Mat
&
src
,
const
Mat
&
mask
)
const
;
const
Mat
&
mask
)
const
CV_OVERRIDE
;
};
/**
...
...
@@ -256,10 +256,10 @@ public:
DepthNormal
(
int
distance_threshold
,
int
difference_threshold
,
size_t
num_features
,
int
extract_threshold
);
virtual
String
name
()
const
;
virtual
String
name
()
const
CV_OVERRIDE
;
virtual
void
read
(
const
FileNode
&
fn
);
virtual
void
write
(
FileStorage
&
fs
)
const
;
virtual
void
read
(
const
FileNode
&
fn
)
CV_OVERRIDE
;
virtual
void
write
(
FileStorage
&
fs
)
const
CV_OVERRIDE
;
int
distance_threshold
;
int
difference_threshold
;
...
...
@@ -268,7 +268,7 @@ public:
protected
:
virtual
Ptr
<
QuantizedPyramid
>
processImpl
(
const
Mat
&
src
,
const
Mat
&
mask
)
const
;
const
Mat
&
mask
)
const
CV_OVERRIDE
;
};
/**
...
...
modules/rgbd/src/depth_cleaner.cpp
View file @
5d0a1283
...
...
@@ -93,7 +93,7 @@ namespace rgbd
/** Compute cached data
*/
virtual
void
cache
()
cache
()
CV_OVERRIDE
{
}
...
...
modules/rgbd/src/linemod.cpp
View file @
5d0a1283
...
...
@@ -428,11 +428,11 @@ public:
float
weak_threshold
,
size_t
num_features
,
float
strong_threshold
);
virtual
void
quantize
(
Mat
&
dst
)
const
;
virtual
void
quantize
(
Mat
&
dst
)
const
CV_OVERRIDE
;
virtual
bool
extractTemplate
(
Template
&
templ
)
const
;
virtual
bool
extractTemplate
(
Template
&
templ
)
const
CV_OVERRIDE
;
virtual
void
pyrDown
();
virtual
void
pyrDown
()
CV_OVERRIDE
;
protected
:
/// Recalculate angle and magnitude images
...
...
@@ -728,11 +728,11 @@ public:
int
distance_threshold
,
int
difference_threshold
,
size_t
num_features
,
int
extract_threshold
);
virtual
void
quantize
(
Mat
&
dst
)
const
;
virtual
void
quantize
(
Mat
&
dst
)
const
CV_OVERRIDE
;
virtual
bool
extractTemplate
(
Template
&
templ
)
const
;
virtual
bool
extractTemplate
(
Template
&
templ
)
const
CV_OVERRIDE
;
virtual
void
pyrDown
();
virtual
void
pyrDown
()
CV_OVERRIDE
;
protected
:
Mat
mask
;
...
...
modules/rgbd/src/normal.cpp
View file @
5d0a1283
...
...
@@ -230,7 +230,7 @@ namespace rgbd
/** Compute cached data
*/
virtual
void
cache
()
cache
()
CV_OVERRIDE
{
// Compute theta and phi according to equation 3
Mat
cos_theta
,
sin_theta
,
cos_phi
,
sin_phi
;
...
...
@@ -360,7 +360,7 @@ multiply_by_K_inv(const Matx<T, 3, 3> & K_inv, U a, U b, U c, Vec<T, 3> &res)
/** Compute cached data
*/
virtual
void
cache
()
cache
()
CV_OVERRIDE
{
}
...
...
@@ -516,7 +516,7 @@ multiply_by_K_inv(const Matx<T, 3, 3> & K_inv, U a, U b, U c, Vec<T, 3> &res)
/** Compute cached data
*/
virtual
void
cache
()
cache
()
CV_OVERRIDE
{
Mat_
<
T
>
cos_theta
,
sin_theta
,
cos_phi
,
sin_phi
;
computeThetaPhi
<
T
>
(
rows_
,
cols_
,
K_
,
cos_theta
,
sin_theta
,
cos_phi
,
sin_phi
);
...
...
modules/rgbd/src/plane.cpp
View file @
5d0a1283
...
...
@@ -182,7 +182,7 @@ public:
* @return
*/
float
distance
(
const
Vec3f
&
p_j
)
const
distance
(
const
Vec3f
&
p_j
)
const
CV_OVERRIDE
{
return
std
::
abs
(
float
(
p_j
.
dot
(
n_
)
+
d_
));
}
...
...
@@ -206,7 +206,7 @@ public:
/** The distance is now computed by taking the sensor error into account */
inline
float
distance
(
const
Vec3f
&
p_j
)
const
distance
(
const
Vec3f
&
p_j
)
const
CV_OVERRIDE
{
float
cst
=
p_j
.
dot
(
n_
)
+
d_
;
float
err
=
sensor_error_a_
*
p_j
[
2
]
*
p_j
[
2
]
+
sensor_error_b_
*
p_j
[
2
]
+
sensor_error_c_
;
...
...
@@ -524,7 +524,7 @@ private:
unsigned
char
plane_index_
;
/** THe block size as defined in the main algorithm */
int
block_size_
;
const
InlierFinder
&
operator
=
(
const
InlierFinder
&
);
};
...
...
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