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
0e9405e5
Commit
0e9405e5
authored
Sep 07, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Honor resently added functionality in hdr_parser and rst_parser; minor fixes in documentation
parent
dc5c7ee6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
11 deletions
+27
-11
default.css_t
doc/_themes/blue/static/default.css_t
+4
-0
check_docs2.py
doc/check_docs2.py
+2
-2
facerec_api.rst
modules/contrib/doc/facerec/facerec_api.rst
+2
-2
index.rst
modules/contrib/doc/retina/index.rst
+0
-0
openfabmap.hpp
modules/contrib/include/opencv2/contrib/openfabmap.hpp
+1
-1
image_processing.rst
modules/gpu/doc/image_processing.rst
+3
-3
rst_parser.py
modules/java/generator/rst_parser.py
+2
-2
hdr_parser.py
modules/python/src2/hdr_parser.py
+13
-1
No files found.
doc/_themes/blue/static/default.css_t
View file @
0e9405e5
...
@@ -179,6 +179,10 @@ div.body p, div.body dd, div.body li {
...
@@ -179,6 +179,10 @@ div.body p, div.body dd, div.body li {
margin-bottom: 1em;
margin-bottom: 1em;
}
}
div.toctree-wrapper li, ul.simple li {
margin:0;
}
div.body h1,
div.body h1,
div.body h2,
div.body h2,
div.body h3,
div.body h3,
...
...
doc/check_docs2.py
View file @
0e9405e5
...
@@ -31,7 +31,7 @@ doc_signatures_whitelist = [
...
@@ -31,7 +31,7 @@ doc_signatures_whitelist = [
# templates
# templates
"Matx"
,
"Vec"
,
"SparseMat_"
,
"Scalar_"
,
"Mat_"
,
"Ptr"
,
"Size_"
,
"Point_"
,
"Rect_"
,
"Point3_"
,
"Matx"
,
"Vec"
,
"SparseMat_"
,
"Scalar_"
,
"Mat_"
,
"Ptr"
,
"Size_"
,
"Point_"
,
"Rect_"
,
"Point3_"
,
"DataType"
,
"detail::RotationWarperBase"
,
"flann::Index_"
,
"CalonderDescriptorExtractor"
,
"DataType"
,
"detail::RotationWarperBase"
,
"flann::Index_"
,
"CalonderDescriptorExtractor"
,
"gpu::
DevMem2D_"
,
"gpu::PtrStep_
"
,
"gpu::PtrElemStep_"
,
"gpu::
PtrStepSz"
,
"gpu::PtrStep
"
,
"gpu::PtrElemStep_"
,
# black boxes
# black boxes
"CvArr"
,
"CvFileStorage"
,
"CvArr"
,
"CvFileStorage"
,
# other
# other
...
@@ -191,7 +191,7 @@ def process_module(module, path):
...
@@ -191,7 +191,7 @@ def process_module(module, path):
hdrlist
.
append
(
os
.
path
.
join
(
root
,
filename
))
hdrlist
.
append
(
os
.
path
.
join
(
root
,
filename
))
if
module
==
"gpu"
:
if
module
==
"gpu"
:
hdrlist
.
append
(
os
.
path
.
join
(
path
,
".."
,
"core"
,
"include"
,
"opencv2"
,
"core"
,
"
devmem2d
.hpp"
))
hdrlist
.
append
(
os
.
path
.
join
(
path
,
".."
,
"core"
,
"include"
,
"opencv2"
,
"core"
,
"
cuda_devptrs
.hpp"
))
hdrlist
.
append
(
os
.
path
.
join
(
path
,
".."
,
"core"
,
"include"
,
"opencv2"
,
"core"
,
"gpumat.hpp"
))
hdrlist
.
append
(
os
.
path
.
join
(
path
,
".."
,
"core"
,
"include"
,
"opencv2"
,
"core"
,
"gpumat.hpp"
))
decls
=
[]
decls
=
[]
...
...
modules/contrib/doc/facerec/facerec_api.rst
View file @
0e9405e5
...
@@ -121,7 +121,7 @@ FaceRecognizer::train
...
@@ -121,7 +121,7 @@ FaceRecognizer::train
Trains a FaceRecognizer with given data and associated labels.
Trains a FaceRecognizer with given data and associated labels.
.. ocv:function:: void FaceRecognizer::train(
InputArray src, InputArray labels)
.. ocv:function:: void FaceRecognizer::train(
InputArrayOfArrays src, InputArray labels ) = 0
:param src: The training images, that means the faces you want to learn. The data has to be given as a ``vector<Mat>``.
:param src: The training images, that means the faces you want to learn. The data has to be given as a ``vector<Mat>``.
...
@@ -166,7 +166,7 @@ FaceRecognizer::update
...
@@ -166,7 +166,7 @@ FaceRecognizer::update
Updates a FaceRecognizer with given data and associated labels.
Updates a FaceRecognizer with given data and associated labels.
.. ocv:function:: void FaceRecognizer::update(
InputArray src, InputArray labels
)
.. ocv:function:: void FaceRecognizer::update(
InputArrayOfArrays src, InputArray labels
)
:param src: The training images, that means the faces you want to learn. The data has to be given as a ``vector<Mat>``.
:param src: The training images, that means the faces you want to learn. The data has to be given as a ``vector<Mat>``.
...
...
modules/contrib/doc/retina/index.rst
View file @
0e9405e5
This diff is collapsed.
Click to expand it.
modules/contrib/include/opencv2/contrib/openfabmap.hpp
View file @
0e9405e5
...
@@ -222,7 +222,7 @@ protected:
...
@@ -222,7 +222,7 @@ protected:
void
getLikelihoods
(
const
Mat
&
queryImgDescriptor
,
const
vector
<
void
getLikelihoods
(
const
Mat
&
queryImgDescriptor
,
const
vector
<
Mat
>&
testImgDescriptors
,
vector
<
IMatch
>&
matches
);
Mat
>&
testImgDescriptors
,
vector
<
IMatch
>&
matches
);
//pr
o
computed data
//pr
e
computed data
int
(
*
table
)[
8
];
int
(
*
table
)[
8
];
//data precision
//data precision
...
...
modules/gpu/doc/image_processing.rst
View file @
0e9405e5
...
@@ -821,10 +821,10 @@ Performs linear blending of two images.
...
@@ -821,10 +821,10 @@ Performs linear blending of two images.
gpu::bilateralFilter
gpu::bilateralFilter
-------------------
-------------------
-
Performs bilateral filtering of passed image
Performs bilateral filtering of passed image
.. ocv:function:: void gpu::bilateralFilter(const GpuMat& src, GpuMat& dst, int kernel_size, float sigma_color, float sigma_spatial, int borderMode, Stream& stream = Stream::Null())
;
.. ocv:function:: void gpu::bilateralFilter(const GpuMat& src, GpuMat& dst, int kernel_size, float sigma_color, float sigma_spatial, int borderMode, Stream& stream = Stream::Null())
:param src: Source image. Supports only (channles != 2 && depth() != CV_8S && depth() != CV_32S && depth() != CV_64F).
:param src: Source image. Supports only (channles != 2 && depth() != CV_8S && depth() != CV_32S && depth() != CV_64F).
...
@@ -849,7 +849,7 @@ gpu::nonLocalMeans
...
@@ -849,7 +849,7 @@ gpu::nonLocalMeans
-------------------
-------------------
Performs pure non local means denoising without any simplification, and thus it is not fast.
Performs pure non local means denoising without any simplification, and thus it is not fast.
.. ocv:function:: void nonLocalMeans(const GpuMat& src, GpuMat& dst, float h, int search_widow_size = 11, int block_size = 7, int borderMode = BORDER_DEFAULT, Stream& s = Stream::Null())
;
.. ocv:function:: void nonLocalMeans(const GpuMat& src, GpuMat& dst, float h, int search_widow_size = 11, int block_size = 7, int borderMode = BORDER_DEFAULT, Stream& s = Stream::Null())
:param src: Source image. Supports only CV_8UC1, CV_8UC3.
:param src: Source image. Supports only CV_8UC1, CV_8UC3.
...
...
modules/java/generator/rst_parser.py
View file @
0e9405e5
import
os
,
sys
,
re
,
string
,
fnmatch
import
os
,
sys
,
re
,
string
,
fnmatch
allmodules
=
[
"core"
,
"flann"
,
"imgproc"
,
"ml"
,
"highgui"
,
"video"
,
"features2d"
,
"calib3d"
,
"objdetect"
,
"legacy"
,
"contrib"
,
"gpu"
,
"androidcamera"
,
"java"
,
"python"
,
"stitching"
,
"ts"
,
"photo"
,
"nonfree"
,
"videostab"
]
allmodules
=
[
"core"
,
"flann"
,
"imgproc"
,
"ml"
,
"highgui"
,
"video"
,
"features2d"
,
"calib3d"
,
"objdetect"
,
"legacy"
,
"contrib"
,
"gpu"
,
"androidcamera"
,
"java"
,
"python"
,
"stitching"
,
"ts"
,
"photo"
,
"nonfree"
,
"videostab"
,
"ocl"
]
verbose
=
False
verbose
=
False
show_warnings
=
True
show_warnings
=
True
show_errors
=
True
show_errors
=
True
...
@@ -342,7 +342,7 @@ class RstParser(object):
...
@@ -342,7 +342,7 @@ class RstParser(object):
continue
continue
ll
=
l
.
rstrip
()
ll
=
l
.
rstrip
()
if
len
(
prev_line
)
>
0
and
len
(
ll
)
>=
len
(
prev_line
)
and
(
ll
==
"-"
*
len
(
ll
)
or
ll
==
"+"
*
len
(
ll
)):
if
len
(
prev_line
)
>
0
and
len
(
ll
)
>=
len
(
prev_line
)
and
(
ll
==
"-"
*
len
(
ll
)
or
ll
==
"+"
*
len
(
ll
)
or
ll
==
"="
*
len
(
ll
)
):
# new function candidate
# new function candidate
if
len
(
lines
)
>
1
:
if
len
(
lines
)
>
1
:
self
.
parse_section_safe
(
module_name
,
fname
,
doc
,
flineno
,
lines
[:
len
(
lines
)
-
1
])
self
.
parse_section_safe
(
module_name
,
fname
,
doc
,
flineno
,
lines
[:
len
(
lines
)
-
1
])
...
...
modules/python/src2/hdr_parser.py
View file @
0e9405e5
...
@@ -155,6 +155,8 @@ class CppHeaderParser(object):
...
@@ -155,6 +155,8 @@ class CppHeaderParser(object):
elif
angle_stack
:
elif
angle_stack
:
arg_type
+=
w
arg_type
+=
w
angle_stack
[
-
1
]
+=
1
angle_stack
[
-
1
]
+=
1
elif
arg_type
==
"struct"
:
arg_type
+=
" "
+
w
elif
arg_type
and
arg_type
!=
"~"
:
elif
arg_type
and
arg_type
!=
"~"
:
arg_name
=
" "
.
join
(
word_list
[
wi
:])
arg_name
=
" "
.
join
(
word_list
[
wi
:])
break
break
...
@@ -429,7 +431,7 @@ class CppHeaderParser(object):
...
@@ -429,7 +431,7 @@ class CppHeaderParser(object):
decl_start
=
decl_start
[
0
:
-
2
]
.
rstrip
()
+
" ()"
decl_start
=
decl_start
[
0
:
-
2
]
.
rstrip
()
+
" ()"
# constructor/destructor case
# constructor/destructor case
if
bool
(
re
.
match
(
r'
(\w+::)*(?P<x>\w+)::~?(?P=x)
'
,
decl_start
)):
if
bool
(
re
.
match
(
r'
^(\w+::)*(?P<x>\w+)::~?(?P=x)$
'
,
decl_start
)):
decl_start
=
"void "
+
decl_start
decl_start
=
"void "
+
decl_start
rettype
,
funcname
,
modlist
,
argno
=
self
.
parse_arg
(
decl_start
,
-
1
)
rettype
,
funcname
,
modlist
,
argno
=
self
.
parse_arg
(
decl_start
,
-
1
)
...
@@ -441,10 +443,14 @@ class CppHeaderParser(object):
...
@@ -441,10 +443,14 @@ class CppHeaderParser(object):
else
:
else
:
if
bool
(
re
.
match
(
'
\
w+
\
s+
\
(
\
*
\
w+
\
)
\
s*
\
(.*
\
)'
,
decl_str
)):
if
bool
(
re
.
match
(
'
\
w+
\
s+
\
(
\
*
\
w+
\
)
\
s*
\
(.*
\
)'
,
decl_str
)):
return
[]
# function typedef
return
[]
# function typedef
elif
bool
(
re
.
match
(
'
\
w+
\
s+
\
(
\
w+::
\
*
\
w+
\
)
\
s*
\
(.*
\
)'
,
decl_str
)):
return
[]
# class method typedef
elif
bool
(
re
.
match
(
'[A-Z_]+'
,
decl_start
)):
elif
bool
(
re
.
match
(
'[A-Z_]+'
,
decl_start
)):
return
[]
# it seems to be a macro instantiation
return
[]
# it seems to be a macro instantiation
elif
"__declspec"
==
decl_start
:
elif
"__declspec"
==
decl_start
:
return
[]
return
[]
elif
bool
(
re
.
match
(
r'\w+\s+\(\*\w+\)\[\d+\]'
,
decl_str
)):
return
[]
# exotic - dynamic 2d array
else
:
else
:
#print rettype, funcname, modlist, argno
#print rettype, funcname, modlist, argno
print
"Error at
%
s:
%
d the function/method name is missing: '
%
s'"
%
(
self
.
hname
,
self
.
lineno
,
decl_start
)
print
"Error at
%
s:
%
d the function/method name is missing: '
%
s'"
%
(
self
.
hname
,
self
.
lineno
,
decl_start
)
...
@@ -799,6 +805,10 @@ class CppHeaderParser(object):
...
@@ -799,6 +805,10 @@ class CppHeaderParser(object):
stmt
=
" "
.
join
(
stmt
.
split
())
# normalize the statement
stmt
=
" "
.
join
(
stmt
.
split
())
# normalize the statement
stack_top
=
self
.
block_stack
[
-
1
]
stack_top
=
self
.
block_stack
[
-
1
]
if
stmt
.
startswith
(
"@"
):
# Objective C ?
break
decl
=
None
decl
=
None
if
stack_top
[
self
.
PROCESS_FLAG
]:
if
stack_top
[
self
.
PROCESS_FLAG
]:
# even if stack_top[PUBLIC_SECTION] is False, we still try to process the statement,
# even if stack_top[PUBLIC_SECTION] is False, we still try to process the statement,
...
@@ -850,5 +860,7 @@ if __name__ == '__main__':
...
@@ -850,5 +860,7 @@ if __name__ == '__main__':
decls
=
[]
decls
=
[]
for
hname
in
opencv_hdr_list
:
for
hname
in
opencv_hdr_list
:
decls
+=
parser
.
parse
(
hname
)
decls
+=
parser
.
parse
(
hname
)
#for hname in sys.argv[1:]:
#decls += parser.parse(hname, wmode=False)
parser
.
print_decls
(
decls
)
parser
.
print_decls
(
decls
)
print
len
(
decls
)
print
len
(
decls
)
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