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
27d2d3cb
Commit
27d2d3cb
authored
Aug 11, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed doc builder complains and the test failures
parent
31df47b6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
4 additions
and
190 deletions
+4
-190
basic_structures.rst
modules/core/doc/basic_structures.rst
+3
-5
common_interfaces_of_descriptor_extractors.rst
...ures2d/doc/common_interfaces_of_descriptor_extractors.rst
+0
-7
common_interfaces_of_feature_detectors.rst
...features2d/doc/common_interfaces_of_feature_detectors.rst
+0
-7
test_descriptors_regression.cpp
modules/features2d/test/test_descriptors_regression.cpp
+0
-22
test_detectors_regression.cpp
modules/features2d/test/test_detectors_regression.cpp
+0
-18
test_keypoints.cpp
modules/features2d/test/test_keypoints.cpp
+0
-12
features2d_manual.hpp
modules/java/generator/src/cpp/features2d_manual.hpp
+0
-118
matching.rst
modules/stitching/doc/matching.rst
+1
-1
No files found.
modules/core/doc/basic_structures.rst
View file @
27d2d3cb
...
...
@@ -3051,13 +3051,11 @@ Here is example of SIFT use in your application via Algorithm interface: ::
#include "opencv2/opencv.hpp"
#include "opencv2/xfeatures2d.hpp"
using namespace cv::xfeatures2d;
...
initModule_nonfree(); // to load SURF/SIFT etc.
Ptr<Feature2D> sift = SIFT::create();
FileStorage fs("sift_params.xml", FileStorage::READ);
...
...
@@ -3068,7 +3066,7 @@ Here is example of SIFT use in your application via Algorithm interface: ::
}
else // else modify the parameters and store them; user can later edit the file to use different parameters
{
sift->set
("contrastThreshold",
0.01f); // lower the contrast threshold, compared to the default value
sift->set
ContrastThreshold(
0.01f); // lower the contrast threshold, compared to the default value
{
WriteStructContext ws(fs, "sift_params", CV_NODE_MAP);
...
...
@@ -3078,7 +3076,7 @@ Here is example of SIFT use in your application via Algorithm interface: ::
Mat image = imread("myimage.png", 0), descriptors;
vector<KeyPoint> keypoints;
(*sift)
(image, noArray(), keypoints, descriptors);
sift->detectAndCompute
(image, noArray(), keypoints, descriptors);
Algorithm::name
---------------
...
...
modules/features2d/doc/common_interfaces_of_descriptor_extractors.rst
View file @
27d2d3cb
...
...
@@ -84,13 +84,6 @@ Creates a descriptor extractor by name.
The current implementation supports the following types of a descriptor extractor:
* ``"SIFT"`` -- :ocv:class:`SIFT`
* ``"SURF"`` -- :ocv:class:`SURF`
* ``"BRIEF"`` -- :ocv:class:`BriefDescriptorExtractor`
* ``"BRISK"`` -- :ocv:class:`BRISK`
* ``"ORB"`` -- :ocv:class:`ORB`
* ``"FREAK"`` -- :ocv:class:`FREAK`
A combined format is also supported: descriptor extractor adapter name ( ``"Opponent"`` --
:ocv:class:`OpponentColorDescriptorExtractor` ) + descriptor extractor name (see above),
for example: ``"OpponentSIFT"`` .
modules/features2d/doc/common_interfaces_of_feature_detectors.rst
View file @
27d2d3cb
...
...
@@ -72,20 +72,13 @@ Creates a feature detector by its name.
The following detector types are supported:
* ``"FAST"`` -- :ocv:class:`FastFeatureDetector`
* ``"STAR"`` -- :ocv:class:`StarFeatureDetector`
* ``"ORB"`` -- :ocv:class:`ORB`
* ``"BRISK"`` -- :ocv:class:`BRISK`
* ``"MSER"`` -- :ocv:class:`MSER`
* ``"GFTT"`` -- :ocv:class:`GoodFeaturesToTrackDetector`
* ``"HARRIS"`` -- :ocv:class:`GoodFeaturesToTrackDetector` with Harris detector enabled
* ``"Dense"`` -- :ocv:class:`DenseFeatureDetector`
* ``"SimpleBlob"`` -- :ocv:class:`SimpleBlobDetector`
Also a combined format is supported: feature detector adapter name ( ``"Grid"`` --
:ocv:class:`GridAdaptedFeatureDetector`, ``"Pyramid"`` --
:ocv:class:`PyramidAdaptedFeatureDetector` ) + feature detector name (see above),
for example: ``"GridFAST"``, ``"PyramidSTAR"`` .
FastFeatureDetector
-------------------
.. ocv:class:: FastFeatureDetector : public FeatureDetector
...
...
modules/features2d/test/test_descriptors_regression.cpp
View file @
27d2d3cb
...
...
@@ -327,28 +327,6 @@ TEST( Features2d_DescriptorExtractor_ORB, regression )
test
.
safe_run
();
}
TEST
(
Features2d_DescriptorExtractor_FREAK
,
regression
)
{
// TODO adjust the parameters below
CV_DescriptorExtractorTest
<
Hamming
>
test
(
"descriptor-freak"
,
(
CV_DescriptorExtractorTest
<
Hamming
>::
DistanceType
)
12.
f
,
DescriptorExtractor
::
create
(
"FREAK"
)
);
test
.
safe_run
();
}
TEST
(
Features2d_DescriptorExtractor_BRIEF
,
regression
)
{
CV_DescriptorExtractorTest
<
Hamming
>
test
(
"descriptor-brief"
,
1
,
DescriptorExtractor
::
create
(
"BRIEF"
)
);
test
.
safe_run
();
}
TEST
(
Features2d_DescriptorExtractor_OpponentBRIEF
,
regression
)
{
CV_DescriptorExtractorTest
<
Hamming
>
test
(
"descriptor-opponent-brief"
,
1
,
DescriptorExtractor
::
create
(
"OpponentBRIEF"
)
);
test
.
safe_run
();
}
TEST
(
Features2d_DescriptorExtractor_KAZE
,
regression
)
{
CV_DescriptorExtractorTest
<
L2
<
float
>
>
test
(
"descriptor-kaze"
,
0.03
f
,
...
...
modules/features2d/test/test_detectors_regression.cpp
View file @
27d2d3cb
...
...
@@ -277,12 +277,6 @@ TEST( Features2d_Detector_MSER, DISABLED_regression )
test
.
safe_run
();
}
TEST
(
Features2d_Detector_STAR
,
regression
)
{
CV_FeatureDetectorTest
test
(
"detector-star"
,
FeatureDetector
::
create
(
"STAR"
)
);
test
.
safe_run
();
}
TEST
(
Features2d_Detector_ORB
,
regression
)
{
CV_FeatureDetectorTest
test
(
"detector-orb"
,
FeatureDetector
::
create
(
"ORB"
)
);
...
...
@@ -300,15 +294,3 @@ TEST( Features2d_Detector_AKAZE, regression )
CV_FeatureDetectorTest
test
(
"detector-akaze"
,
FeatureDetector
::
create
(
"AKAZE"
)
);
test
.
safe_run
();
}
TEST
(
Features2d_Detector_GridFAST
,
regression
)
{
CV_FeatureDetectorTest
test
(
"detector-grid-fast"
,
FeatureDetector
::
create
(
"GridFAST"
)
);
test
.
safe_run
();
}
TEST
(
Features2d_Detector_PyramidFAST
,
regression
)
{
CV_FeatureDetectorTest
test
(
"detector-pyramid-fast"
,
FeatureDetector
::
create
(
"PyramidFAST"
)
);
test
.
safe_run
();
}
modules/features2d/test/test_keypoints.cpp
View file @
27d2d3cb
...
...
@@ -155,18 +155,6 @@ TEST(Features2d_Detector_Keypoints_ORB, validation)
test
.
safe_run
();
}
TEST
(
Features2d_Detector_Keypoints_Star
,
validation
)
{
CV_FeatureDetectorKeypointsTest
test
(
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.STAR"
));
test
.
safe_run
();
}
TEST
(
Features2d_Detector_Keypoints_Dense
,
validation
)
{
CV_FeatureDetectorKeypointsTest
test
(
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.Dense"
));
test
.
safe_run
();
}
TEST
(
Features2d_Detector_Keypoints_KAZE
,
validation
)
{
CV_FeatureDetectorKeypointsTest
test
(
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.KAZE"
));
...
...
modules/java/generator/src/cpp/features2d_manual.hpp
View file @
27d2d3cb
...
...
@@ -390,124 +390,6 @@ private:
Ptr
<
DescriptorExtractor
>
wrapped
;
};
class
CV_EXPORTS_AS
(
GenericDescriptorMatcher
)
javaGenericDescriptorMatcher
{
public
:
CV_WRAP
void
add
(
const
std
::
vector
<
Mat
>&
images
,
std
::
vector
<
std
::
vector
<
KeyPoint
>
>&
keypoints
)
{
return
wrapped
->
add
(
images
,
keypoints
);
}
CV_WRAP
const
std
::
vector
<
Mat
>&
getTrainImages
()
const
{
return
wrapped
->
getTrainImages
();
}
CV_WRAP
const
std
::
vector
<
std
::
vector
<
KeyPoint
>
>&
getTrainKeypoints
()
const
{
return
wrapped
->
getTrainKeypoints
();
}
CV_WRAP
void
clear
()
{
return
wrapped
->
clear
();
}
CV_WRAP
bool
isMaskSupported
()
{
return
wrapped
->
isMaskSupported
();
}
CV_WRAP
void
train
()
{
return
wrapped
->
train
();
}
CV_WRAP
void
classify
(
const
Mat
&
queryImage
,
CV_IN_OUT
std
::
vector
<
KeyPoint
>&
queryKeypoints
,
const
Mat
&
trainImage
,
std
::
vector
<
KeyPoint
>&
trainKeypoints
)
const
{
return
wrapped
->
classify
(
queryImage
,
queryKeypoints
,
trainImage
,
trainKeypoints
);
}
CV_WRAP
void
classify
(
const
Mat
&
queryImage
,
CV_IN_OUT
std
::
vector
<
KeyPoint
>&
queryKeypoints
)
{
return
wrapped
->
classify
(
queryImage
,
queryKeypoints
);
}
CV_WRAP
void
match
(
const
Mat
&
queryImage
,
std
::
vector
<
KeyPoint
>&
queryKeypoints
,
const
Mat
&
trainImage
,
std
::
vector
<
KeyPoint
>&
trainKeypoints
,
CV_OUT
std
::
vector
<
DMatch
>&
matches
,
const
Mat
&
mask
=
Mat
()
)
const
{
return
wrapped
->
match
(
queryImage
,
queryKeypoints
,
trainImage
,
trainKeypoints
,
matches
,
mask
);
}
CV_WRAP
void
knnMatch
(
const
Mat
&
queryImage
,
std
::
vector
<
KeyPoint
>&
queryKeypoints
,
const
Mat
&
trainImage
,
std
::
vector
<
KeyPoint
>&
trainKeypoints
,
CV_OUT
std
::
vector
<
std
::
vector
<
DMatch
>
>&
matches
,
int
k
,
const
Mat
&
mask
=
Mat
(),
bool
compactResult
=
false
)
const
{
return
wrapped
->
knnMatch
(
queryImage
,
queryKeypoints
,
trainImage
,
trainKeypoints
,
matches
,
k
,
mask
,
compactResult
);
}
CV_WRAP
void
radiusMatch
(
const
Mat
&
queryImage
,
std
::
vector
<
KeyPoint
>&
queryKeypoints
,
const
Mat
&
trainImage
,
std
::
vector
<
KeyPoint
>&
trainKeypoints
,
CV_OUT
std
::
vector
<
std
::
vector
<
DMatch
>
>&
matches
,
float
maxDistance
,
const
Mat
&
mask
=
Mat
(),
bool
compactResult
=
false
)
const
{
return
wrapped
->
radiusMatch
(
queryImage
,
queryKeypoints
,
trainImage
,
trainKeypoints
,
matches
,
maxDistance
,
mask
,
compactResult
);
}
CV_WRAP
void
match
(
const
Mat
&
queryImage
,
std
::
vector
<
KeyPoint
>&
queryKeypoints
,
CV_OUT
std
::
vector
<
DMatch
>&
matches
,
const
std
::
vector
<
Mat
>&
masks
=
std
::
vector
<
Mat
>
()
)
{
return
wrapped
->
match
(
queryImage
,
queryKeypoints
,
matches
,
masks
);
}
CV_WRAP
void
knnMatch
(
const
Mat
&
queryImage
,
std
::
vector
<
KeyPoint
>&
queryKeypoints
,
CV_OUT
std
::
vector
<
std
::
vector
<
DMatch
>
>&
matches
,
int
k
,
const
std
::
vector
<
Mat
>&
masks
=
std
::
vector
<
Mat
>
(),
bool
compactResult
=
false
)
{
return
wrapped
->
knnMatch
(
queryImage
,
queryKeypoints
,
matches
,
k
,
masks
,
compactResult
);
}
CV_WRAP
void
radiusMatch
(
const
Mat
&
queryImage
,
std
::
vector
<
KeyPoint
>&
queryKeypoints
,
CV_OUT
std
::
vector
<
std
::
vector
<
DMatch
>
>&
matches
,
float
maxDistance
,
const
std
::
vector
<
Mat
>&
masks
=
std
::
vector
<
Mat
>
(),
bool
compactResult
=
false
)
{
return
wrapped
->
radiusMatch
(
queryImage
,
queryKeypoints
,
matches
,
maxDistance
,
masks
,
compactResult
);
}
CV_WRAP
bool
empty
()
const
{
return
wrapped
->
empty
();
}
enum
{
ONEWAY
=
1
,
FERN
=
2
};
CV_WRAP_AS
(
clone
)
javaGenericDescriptorMatcher
*
jclone
(
bool
emptyTrainData
=
false
)
const
{
return
new
javaGenericDescriptorMatcher
(
wrapped
->
clone
(
emptyTrainData
));
}
//supported: OneWay, Fern
//unsupported: Vector
CV_WRAP
static
javaGenericDescriptorMatcher
*
create
(
int
matcherType
)
{
String
name
;
switch
(
matcherType
)
{
case
ONEWAY
:
name
=
"ONEWAY"
;
break
;
case
FERN
:
name
=
"FERN"
;
break
;
default
:
CV_Error
(
Error
::
StsBadArg
,
"Specified generic descriptor matcher type is not supported."
);
break
;
}
return
new
javaGenericDescriptorMatcher
(
GenericDescriptorMatcher
::
create
(
name
));
}
CV_WRAP
void
write
(
const
String
&
fileName
)
const
{
FileStorage
fs
(
fileName
,
FileStorage
::
WRITE
);
wrapped
->
write
(
fs
);
}
CV_WRAP
void
read
(
const
String
&
fileName
)
{
FileStorage
fs
(
fileName
,
FileStorage
::
READ
);
wrapped
->
read
(
fs
.
root
());
}
private
:
javaGenericDescriptorMatcher
(
Ptr
<
GenericDescriptorMatcher
>
_wrapped
)
:
wrapped
(
_wrapped
)
{}
Ptr
<
GenericDescriptorMatcher
>
wrapped
;
};
#if 0
//DO NOT REMOVE! The block is required for sources parser
enum
...
...
modules/stitching/doc/matching.rst
View file @
27d2d3cb
...
...
@@ -88,7 +88,7 @@ SURF features finder. ::
/* hidden */
};
.. seealso:: :ocv:class:`detail::FeaturesFinder`,
:ocv:class:`SURF
`
.. seealso:: :ocv:class:`detail::FeaturesFinder`,
``SURF`
`
detail::OrbFeaturesFinder
-------------------------
...
...
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