2013-08-06 19:16:38 +08:00
|
|
|
{% import 'functional.cpp' as functional %}
|
2013-08-08 02:46:45 +08:00
|
|
|
{{ ('CV.' + fun.name | upper + ' ' + doc.brief | stripTags) | comment(75, '%') | matlabURL }}
|
2013-08-07 14:34:30 +08:00
|
|
|
%
|
2013-08-06 19:16:38 +08:00
|
|
|
% {{ functional.composeMatlab(fun) | upper }}
|
2013-08-07 14:34:30 +08:00
|
|
|
{% if doc.long %}
|
2013-08-08 02:46:45 +08:00
|
|
|
{{ doc.long | stripTags | qualify(fun.name) | comment(75, '% ') | matlabURL }}
|
2013-08-07 14:34:30 +08:00
|
|
|
{% endif %}
|
2013-03-13 19:52:13 +08:00
|
|
|
%
|
2013-08-08 01:51:44 +08:00
|
|
|
{# ----------------------- Returns --------------------- #}
|
2013-08-06 19:16:38 +08:00
|
|
|
{% if fun.rtp|void|not or fun.req|outputs|length or fun.opt|outputs|length %}
|
|
|
|
% Returns:
|
|
|
|
{% if fun.rtp|void|not %}
|
|
|
|
% LVALUE
|
|
|
|
{% endif %}
|
|
|
|
{% for arg in fun.req|outputs + fun.opt|outputs %}
|
2013-08-07 14:34:30 +08:00
|
|
|
{% set uname = arg.name | upper + ('_OUT' if arg.I else '') %}
|
|
|
|
{% if arg.name in doc.params %}
|
|
|
|
{{ (uname + ' ' + doc.params[arg.name]) | stripTags | comment(75, '% ') }}
|
|
|
|
{% else %}
|
|
|
|
{{ uname }}
|
|
|
|
{% endif %}
|
2013-08-06 19:16:38 +08:00
|
|
|
{% endfor %}
|
|
|
|
%
|
2013-08-08 01:51:44 +08:00
|
|
|
{% endif %}
|
|
|
|
{# ----------------- Required Inputs ------------------- #}
|
2013-08-06 19:16:38 +08:00
|
|
|
{% if fun.req|inputs|length %}
|
|
|
|
% Required Inputs:
|
|
|
|
{% for arg in fun.req|inputs %}
|
2013-08-07 14:34:30 +08:00
|
|
|
{% set uname = arg.name | upper + ('_IN' if arg.O else '') %}
|
|
|
|
{% if arg.name in doc.params %}
|
|
|
|
{{ (uname + ' ' + doc.params[arg.name]) | stripTags | comment(75, '% ') }}
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
2013-08-06 19:16:38 +08:00
|
|
|
{% endfor %}
|
|
|
|
%
|
2013-08-08 01:51:44 +08:00
|
|
|
{% endif %}
|
|
|
|
{# ------------------ Optional Inputs ------------------- #}
|
2013-08-06 19:16:38 +08:00
|
|
|
{% if fun.opt|inputs|length %}
|
|
|
|
% Optional Inputs:
|
|
|
|
{% for arg in fun.opt|inputs %}
|
2013-08-07 14:34:30 +08:00
|
|
|
{% set uname = arg.name | upper + ('_IN' if arg.O else '') + ' (default: ' + arg.default + ')' %}
|
|
|
|
{% if arg.name in doc.params %}
|
|
|
|
{{ (uname + ' ' + doc.params[arg.name]) | stripTags | comment(75, '% ') }}
|
|
|
|
{% else %}
|
|
|
|
{{ uname }}
|
|
|
|
{% endif %}
|
2013-08-06 19:16:38 +08:00
|
|
|
{% endfor %}
|
|
|
|
%
|
2013-08-08 01:51:44 +08:00
|
|
|
{% endif %}
|
|
|
|
{# ---------------------- See also --------------------- #}
|
2013-08-07 14:34:30 +08:00
|
|
|
{% if 'seealso' in doc %}
|
|
|
|
% See also: {% for item in doc['seealso'] %}
|
|
|
|
cv.{{ item }}{% if not loop.last %}, {% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
2013-08-06 19:16:38 +08:00
|
|
|
%
|
2013-08-07 14:34:30 +08:00
|
|
|
{% endif %}
|
2013-08-08 01:51:44 +08:00
|
|
|
{# ----------------------- Online ---------------------- #}
|
2013-08-07 17:28:58 +08:00
|
|
|
{% set url = 'http://docs.opencv.org/modules/' + doc.module + '/doc/' + (doc.file|filename) + '.html#' + (fun.name|slugify) %}
|
2013-08-08 02:46:45 +08:00
|
|
|
% Online docs: {{ url | matlabURL }}
|
2013-08-06 19:16:38 +08:00
|
|
|
% Copyright {{ time.strftime("%Y", time.localtime()) }} The OpenCV Foundation
|
2013-03-13 19:52:13 +08:00
|
|
|
%
|