Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
c5ffd1fd
Commit
c5ffd1fd
authored
Aug 06, 2013
by
hbristow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated main Matlab help string
parent
7ef3be34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
23 deletions
+55
-23
gen_matlab.py
modules/matlab/generator/gen_matlab.py
+1
-1
template_map_base.m
modules/matlab/generator/templates/template_map_base.m
+54
-22
No files found.
modules/matlab/generator/gen_matlab.py
View file @
c5ffd1fd
...
...
@@ -88,7 +88,7 @@ class MatlabWrapperGenerator(object):
# create a global constants lookup table
const
=
dict
(
constants
(
todict
(
parse_tree
.
namespaces
)))
populated
=
tconst
.
render
(
constants
=
const
)
populated
=
tconst
.
render
(
constants
=
const
,
time
=
time
)
with
open
(
output_dir
+
'/cv.m'
,
'wb'
)
as
f
:
f
.
write
(
populated
)
...
...
modules/matlab/generator/templates/template_map_base.m
View file @
c5ffd1fd
% CV
% This class enumerates all OpenCV constants, stripping them
% out of classes where necessary. The constants can then be
% used in OpenCV functions by prefixing the class name
% e.g.
% cv.dft(x, xf, cv.DFT_FORWARD);
%
% The properties are all declared Constant, so they cannot be
% changed, however they can be accidentally aliased if you
% declare a variable of the same name first. If you're
% particularly afraid of aliasing, you can call cv() before
% calling constants to parse the variable 'cv' as this class
%
% Note that calls to this class and calls to methods contained
% in the namespace cv can happily coexist
%
% Users also have the option of calling the constants as strings
% e.g.
% cv.dft(x, xf, "DFT_FORWARD");
%
% This tends to be faster as it is hashed in C++, but the
% values of the constants cannot be introspected
% ------------------------------------------------------------------------
% OpenCV Toolbox
% Matlab bindings for the OpenCV library
% ------------------------------------------------------------------------
%
% The OpenCV Toolbox allows you to make calls to native OpenCV methods
% and classes directly from within Matlab.
%
% PATHS
% To call OpenCV methods from anywhere in your workspace, add the
% directory containing this file to the path:
%
% addpath(fileparts(which('cv')));
%
% The OpenCV Toolbox contains two important locations:
% cv.m - This file, containing OpenCV enums
% +cv/ - The directory containing the OpenCV methods and classes
%
% CALLING SYNTAX
% To call an OpenCV method, class or enum, it must be prefixed with the
% 'cv' qualifier. For example:
%
% % perform a Fourier transform
% Xf = cv.dft(X, cv.DFT_COMPLEX_OUTPUT);
%
% % create a VideoCapture object, and open a file
% camera = cv.VideoCapture();
% camera.open('/path/to/file');
%
% HELP
% Each method has its own help file containing information about the
% arguments, return values, and what operation the method performs.
% You can access this help information by typing:
%
% help cv.methodName
%
% The full list of methods can be found by inspecting the +cv/
% directory. Note that the methods available to you will depend
% on which modules you configured OpenCV to build.
%
% DIAGNOSTICS
% If you are having problems with the OpenCV Toolbox and need to send a
% bug report to the OpenCV team, you can get a printout of diagnostic
% information to submit along with your report by typing:
%
% cv.buildInformation();
%
% OTHER RESOURCES
% OpenCV documentation online: http://docs.opencv.org
% OpenCV issue tracker: http://code.opencv.org
% OpenCV Q&A: http://answers.opencv.org
%
% Copyright {{ time.strftime("%Y", time.localtime()) }} The OpenCV Foundation
%
classdef
cv
properties
(
Constant
=
true
)
{% for key, val in constants.items() %}
...
...
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