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
b67896df
Commit
b67896df
authored
Jan 20, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #151 from rokm/matlab-fix
Fixes required to compile MATLAB bindings
parents
c6ea683b
63008ba7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
CMakeLists.txt
modules/matlab/CMakeLists.txt
+1
-0
bridge.hpp
modules/matlab/include/opencv2/matlab/bridge.hpp
+7
-0
No files found.
modules/matlab/CMakeLists.txt
View file @
b67896df
...
...
@@ -104,6 +104,7 @@ set(HDR_PARSER_PATH ${CMAKE_SOURCE_DIR}/modules/python/src2)
set
(
RST_PARSER_PATH
${
CMAKE_SOURCE_DIR
}
/modules/java/generator
)
# set mex compiler options
prepend
(
"-I"
MEX_INCLUDE_DIRS
${
CMAKE_BINARY_DIR
}
)
prepend
(
"-I"
MEX_INCLUDE_DIRS
${
CMAKE_CURRENT_SOURCE_DIR
}
/include
)
if
(
MSVC
)
prepend
(
"-L"
MEX_LIB_DIR
${
LIBRARY_OUTPUT_PATH
}
/
${
CMAKE_CFG_INTDIR
}
)
...
...
modules/matlab/include/opencv2/matlab/bridge.hpp
View file @
b67896df
...
...
@@ -53,6 +53,7 @@
#include <opencv2/imgproc.hpp>
#include <opencv2/calib3d.hpp>
#include <opencv2/photo.hpp>
#include <opencv2/stitching.hpp>
#include <opencv2/video.hpp>
namespace
cv
{
...
...
@@ -87,6 +88,7 @@ typedef cv::Ptr<DenseOpticalFlow> Ptr_DenseOpticalFlow;
typedef
cv
::
Ptr
<
MergeDebevec
>
Ptr_MergeDebevec
;
typedef
cv
::
Ptr
<
MergeMertens
>
Ptr_MergeMertens
;
typedef
cv
::
Ptr
<
MergeRobertson
>
Ptr_MergeRobertson
;
typedef
cv
::
Ptr
<
Stitcher
>
Ptr_Stitcher
;
typedef
cv
::
Ptr
<
Tonemap
>
Ptr_Tonemap
;
typedef
cv
::
Ptr
<
TonemapDrago
>
Ptr_TonemapDrago
;
typedef
cv
::
Ptr
<
TonemapDurand
>
Ptr_TonemapDurand
;
...
...
@@ -481,6 +483,11 @@ public:
Ptr_MergeRobertson
toPtrMergeRobertson
()
{
return
Ptr_MergeRobertson
();
}
operator
Ptr_MergeRobertson
()
{
return
toPtrMergeRobertson
();
}
// --------------------------- Ptr_Stitcher ------------------------------
Bridge
&
operator
=
(
const
Ptr_Stitcher
&
)
{
return
*
this
;
}
Ptr_Stitcher
toPtrStitcher
()
{
return
Ptr_Stitcher
();
}
operator
Ptr_Stitcher
()
{
return
toPtrStitcher
();
}
// --------------------------- Ptr_Tonemap ------------------------------
Bridge
&
operator
=
(
const
Ptr_Tonemap
&
)
{
return
*
this
;
}
Ptr_Tonemap
toPtrTonemap
()
{
return
Ptr_Tonemap
();
}
...
...
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