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
56835214
Commit
56835214
authored
Mar 21, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
structured_light: apply CV_OVERRIDE/CV_FINAL
parent
ee7c0853
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
graycodepattern.cpp
modules/structured_light/src/graycodepattern.cpp
+9
-9
sinusoidalpattern.cpp
modules/structured_light/src/sinusoidalpattern.cpp
+8
-8
No files found.
modules/structured_light/src/graycodepattern.cpp
View file @
56835214
...
...
@@ -43,36 +43,36 @@
namespace
cv
{
namespace
structured_light
{
class
CV_EXPORTS_W
GrayCodePattern_Impl
:
public
GrayCodePattern
class
CV_EXPORTS_W
GrayCodePattern_Impl
CV_FINAL
:
public
GrayCodePattern
{
public
:
// Constructor
explicit
GrayCodePattern_Impl
(
const
GrayCodePattern
::
Params
&
parameters
=
GrayCodePattern
::
Params
()
);
// Destructor
virtual
~
GrayCodePattern_Impl
(){};
virtual
~
GrayCodePattern_Impl
()
CV_OVERRIDE
{};
// Generates the gray code pattern as a std::vector<Mat>
bool
generate
(
OutputArrayOfArrays
patternImages
);
bool
generate
(
OutputArrayOfArrays
patternImages
)
CV_OVERRIDE
;
// Decodes the gray code pattern, computing the disparity map
bool
decode
(
const
std
::
vector
<
std
::
vector
<
Mat
>
>&
patternImages
,
OutputArray
disparityMap
,
InputArrayOfArrays
blackImages
=
noArray
(),
InputArrayOfArrays
whiteImages
=
noArray
(),
int
flags
=
DECODE_3D_UNDERWORLD
)
const
;
InputArrayOfArrays
whiteImages
=
noArray
(),
int
flags
=
DECODE_3D_UNDERWORLD
)
const
CV_OVERRIDE
;
// Returns the number of pattern images for the graycode pattern
size_t
getNumberOfPatternImages
()
const
;
size_t
getNumberOfPatternImages
()
const
CV_OVERRIDE
;
// Sets the value for black threshold
void
setBlackThreshold
(
size_t
val
);
void
setBlackThreshold
(
size_t
val
)
CV_OVERRIDE
;
// Sets the value for set the value for white threshold
void
setWhiteThreshold
(
size_t
val
);
void
setWhiteThreshold
(
size_t
val
)
CV_OVERRIDE
;
// Generates the images needed for shadowMasks computation
void
getImagesForShadowMasks
(
InputOutputArray
blackImage
,
InputOutputArray
whiteImage
)
const
;
void
getImagesForShadowMasks
(
InputOutputArray
blackImage
,
InputOutputArray
whiteImage
)
const
CV_OVERRIDE
;
// For a (x,y) pixel of the camera returns the corresponding projector pixel
bool
getProjPixel
(
InputArrayOfArrays
patternImages
,
int
x
,
int
y
,
Point
&
projPix
)
const
;
bool
getProjPixel
(
InputArrayOfArrays
patternImages
,
int
x
,
int
y
,
Point
&
projPix
)
const
CV_OVERRIDE
;
private
:
// Parameters
...
...
modules/structured_light/src/sinusoidalpattern.cpp
View file @
56835214
...
...
@@ -44,37 +44,37 @@
namespace
cv
{
namespace
structured_light
{
class
CV_EXPORTS_W
SinusoidalPatternProfilometry_Impl
:
public
SinusoidalPattern
class
CV_EXPORTS_W
SinusoidalPatternProfilometry_Impl
CV_FINAL
:
public
SinusoidalPattern
{
public
:
// Constructor
explicit
SinusoidalPatternProfilometry_Impl
(
const
SinusoidalPattern
::
Params
&
parameters
=
SinusoidalPattern
::
Params
()
);
// Destructor
virtual
~
SinusoidalPatternProfilometry_Impl
(){};
virtual
~
SinusoidalPatternProfilometry_Impl
()
CV_OVERRIDE
{};
// Generate sinusoidal patterns
bool
generate
(
OutputArrayOfArrays
patternImages
);
bool
generate
(
OutputArrayOfArrays
patternImages
)
CV_OVERRIDE
;
bool
decode
(
const
std
::
vector
<
std
::
vector
<
Mat
>
>&
patternImages
,
OutputArray
disparityMap
,
InputArrayOfArrays
blackImages
=
noArray
(),
InputArrayOfArrays
whiteImages
=
noArray
(),
int
flags
=
0
)
const
;
noArray
(),
int
flags
=
0
)
const
CV_OVERRIDE
;
// Compute a wrapped phase map from the sinusoidal patterns
void
computePhaseMap
(
InputArrayOfArrays
patternImages
,
OutputArray
wrappedPhaseMap
,
OutputArray
shadowMask
=
noArray
(),
InputArray
fundamental
=
noArray
());
OutputArray
shadowMask
=
noArray
(),
InputArray
fundamental
=
noArray
())
CV_OVERRIDE
;
// Unwrap the wrapped phase map to retrieve correspondences
void
unwrapPhaseMap
(
InputArray
wrappedPhaseMap
,
OutputArray
unwrappedPhaseMap
,
cv
::
Size
camSize
,
InputArray
shadowMask
=
noArray
()
);
InputArray
shadowMask
=
noArray
()
)
CV_OVERRIDE
;
// Find correspondences between the devices
void
findProCamMatches
(
InputArray
projUnwrappedPhaseMap
,
InputArray
camUnwrappedPhaseMap
,
OutputArrayOfArrays
matches
);
OutputArrayOfArrays
matches
)
CV_OVERRIDE
;
void
computeDataModulationTerm
(
InputArrayOfArrays
patternImages
,
OutputArray
dataModulationTerm
,
InputArray
shadowMask
);
InputArray
shadowMask
)
CV_OVERRIDE
;
private
:
// Compute The Fourier transform of a pattern. Output is complex. Taken from the DFT example in OpenCV
...
...
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