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
4889ec5c
Commit
4889ec5c
authored
May 02, 2016
by
berak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
structured_light: python / java bindings
parent
0c241990
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
CMakeLists.txt
modules/structured_light/CMakeLists.txt
+1
-1
graycodepattern.hpp
...ight/include/opencv2/structured_light/graycodepattern.hpp
+6
-5
graycodepattern.cpp
modules/structured_light/src/graycodepattern.cpp
+10
-0
No files found.
modules/structured_light/CMakeLists.txt
View file @
4889ec5c
set
(
the_description
"Structured Light API"
)
ocv_define_module
(
structured_light opencv_core opencv_calib3d opencv_imgproc opencv_highgui opencv_features2d opencv_rgbd OPTIONAL opencv_viz
)
ocv_define_module
(
structured_light opencv_core opencv_calib3d opencv_imgproc opencv_highgui opencv_features2d opencv_rgbd OPTIONAL opencv_viz
WRAP python java
)
modules/structured_light/include/opencv2/structured_light/graycodepattern.hpp
View file @
4889ec5c
...
...
@@ -43,6 +43,7 @@
#define __OPENCV_GRAY_CODE_PATTERN_HPP__
#include "opencv2/core.hpp"
#include "opencv2/structured_light/structured_light.hpp"
namespace
cv
{
namespace
structured_light
{
...
...
@@ -72,22 +73,22 @@ class CV_EXPORTS_W GrayCodePattern : public StructuredLightPattern
* @param width Projector's width. Default value is 1024.
* @param height Projector's height. Default value is 768.
*/
struct
CV_EXPORTS
_W_SIMPLE
Params
struct
CV_EXPORTS
Params
{
CV_WRAP
Params
();
CV_PROP_RW
int
width
;
CV_PROP_RW
int
height
;
};
/** @brief Constructor
@param parameters GrayCodePattern parameters GrayCodePattern::Params: the width and the height of the projector.
*/
CV_WRAP
static
Ptr
<
GrayCodePattern
>
create
(
const
GrayCodePattern
::
Params
&
parameters
=
GrayCodePattern
::
Params
()
);
// alias for scripting
CV_WRAP
static
Ptr
<
GrayCodePattern
>
create
(
int
width
,
int
height
);
/** @brief Get the number of pattern images needed for the graycode pattern.
*
* @return The number of pattern images needed for the graycode pattern.
...
...
modules/structured_light/src/graycodepattern.cpp
View file @
4889ec5c
...
...
@@ -471,5 +471,15 @@ Ptr<GrayCodePattern> GrayCodePattern::create( const GrayCodePattern::Params& par
return
makePtr
<
GrayCodePattern_Impl
>
(
params
);
}
// Creates the GrayCodePattern instance
// alias for scripting
Ptr
<
GrayCodePattern
>
GrayCodePattern
::
create
(
int
width
,
int
height
)
{
Params
params
;
params
.
width
=
width
;
params
.
height
=
height
;
return
makePtr
<
GrayCodePattern_Impl
>
(
params
);
}
}
}
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