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
004ac553
Commit
004ac553
authored
Nov 02, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1426 from terfendail:matlab_readme
parents
d3118ad0
0e561487
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
README.md
modules/matlab/README.md
+4
-3
No files found.
modules/matlab/README.md
View file @
004ac553
...
...
@@ -73,7 +73,7 @@ void mexFunction(int nlhs, mxArray* plhs[],
// add an argument parser to automatically handle basic options
ArgumentParser
parser
(
"my function"
);
parser
.
addVariant
(
1
,
1
,
"opt"
);
parser
.
addVariant
(
"variant1"
,
1
,
1
,
"opt"
);
MxArrayVector
reordered
=
parser
.
parse
(
raw
);
// if we get here, we know the inputs are valid and reordered. Unpack...
...
...
@@ -90,7 +90,8 @@ void mexFunction(int nlhs, mxArray* plhs[],
}
// allocate an output
Bridge
out
=
required
;
Bridge
out
;
out
=
required
;
plhs
[
0
]
=
out
.
toMxArray
().
releaseOwnership
();
}
```
...
...
@@ -363,7 +364,7 @@ then you can create an `ArgumentParser` as follows:
```
cpp
ArgumentParser
parser
(
"f"
);
parser
.
addVariant
(
2
,
2
,
"mask"
,
"dtype"
);
parser
.
addVariant
(
"f"
,
2
,
2
,
"mask"
,
"dtype"
);
MxArrayVector
inputs
=
parser
.
parse
(
prhs
,
prhs
+
nrhs
);
```
...
...
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