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
c2513ffb
Commit
c2513ffb
authored
Sep 30, 2016
by
berak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python tutorials: removed remainders of former Algorithm interface
parent
473dba11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
py_brief.markdown
doc/py_tutorials/py_feature2d/py_brief/py_brief.markdown
+3
-3
py_fast.markdown
doc/py_tutorials/py_feature2d/py_fast/py_fast.markdown
+4
-4
No files found.
doc/py_tutorials/py_feature2d/py_brief/py_brief.markdown
View file @
c2513ffb
...
...
@@ -61,7 +61,7 @@ img = cv2.imread('simple.jpg',0)
star = cv2.xfeatures2d.StarDetector_create()
# Initiate BRIEF extractor
brief = cv2.BriefDescriptorExtractor_create()
brief = cv2.
xfeatures2d.
BriefDescriptorExtractor_create()
# find the keypoints with STAR
kp = star.detect(img,None)
...
...
@@ -69,10 +69,10 @@ kp = star.detect(img,None)
# compute the descriptors with BRIEF
kp, des = brief.compute(img, kp)
print brief.
getInt('bytes'
)
print brief.
descriptorSize(
)
print des.shape
@endcode
The function brief.get
Int('bytes'
) gives the
\f
$n_d
\f
$ size used in bytes. By default it is 32. Next one
The function brief.get
DescriptorSize(
) gives the
\f
$n_d
\f
$ size used in bytes. By default it is 32. Next one
is matching, which will be done in another chapter.
Additional Resources
...
...
doc/py_tutorials/py_feature2d/py_fast/py_fast.markdown
View file @
c2513ffb
...
...
@@ -108,15 +108,15 @@ kp = fast.detect(img,None)
img2 = cv2.drawKeypoints(img, kp, None, color=(255,0,0))
# Print all default params
print "Threshold: ", fast.get
Int('threshold'
)
print "nonmaxSuppression: ", fast.get
Bool('nonmaxSuppression'
)
print "neighborhood: ", fast.get
Int('type'
)
print "Threshold: ", fast.get
Threshold(
)
print "nonmaxSuppression: ", fast.get
NonmaxSuppression(
)
print "neighborhood: ", fast.get
Type(
)
print "Total Keypoints with nonmaxSuppression: ", len(kp)
cv2.imwrite('fast_true.png',img2)
# Disable nonmaxSuppression
fast.set
Bool('nonmaxSuppression',
0)
fast.set
NonmaxSuppression(
0)
kp = fast.detect(img,None)
print "Total Keypoints without nonmaxSuppression: ", len(kp)
...
...
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