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
a2a3ec69
Commit
a2a3ec69
authored
Sep 10, 2010
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed FernClassifier
parent
bbc20150
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
descriptors.cpp
modules/features2d/src/descriptors.cpp
+4
-6
planardetect.cpp
modules/features2d/src/planardetect.cpp
+1
-1
No files found.
modules/features2d/src/descriptors.cpp
View file @
a2a3ec69
...
...
@@ -665,15 +665,13 @@ void GenericDescriptorMatch::clear()
Ptr
<
GenericDescriptorMatch
>
createGenericDescriptorMatch
(
const
string
&
genericDescritptorMatchType
,
const
string
&
paramsFilename
)
{
GenericDescriptorMatch
*
descriptorMatch
=
0
;
if
(
!
genericDescritptorMatchType
.
compare
(
"ONEWAY"
)
)
if
(
!
genericDescritptorMatchType
.
compare
(
"ONEWAY"
)
)
{
descriptorMatch
=
new
OneWayDescriptorMatch
();
descriptorMatch
=
new
OneWayDescriptorMatch
();
}
else
if
(
!
genericDescritptorMatchType
.
compare
(
"FERN"
)
)
else
if
(
!
genericDescritptorMatchType
.
compare
(
"FERN"
)
)
{
FernDescriptorMatch
::
Params
params
;
params
.
signatureSize
=
numeric_limits
<
int
>::
max
();
descriptorMatch
=
new
FernDescriptorMatch
(
params
);
descriptorMatch
=
new
FernDescriptorMatch
();
}
else
if
(
!
genericDescritptorMatchType
.
compare
(
"CALONDER"
)
)
{
...
...
modules/features2d/src/planardetect.cpp
View file @
a2a3ec69
...
...
@@ -805,7 +805,7 @@ void FernClassifier::prepare(int _nclasses, int _patchSize, int _signatureSize,
patchSize
=
Size
(
_patchSize
,
_patchSize
);
nstructs
=
_nstructs
;
structSize
=
_structSize
;
signatureSize
=
std
::
min
(
_signatureSize
,
nclasses
);
signatureSize
=
_compressionMethod
==
COMPRESSION_NONE
?
nclasses
:
std
::
min
(
_signatureSize
,
nclasses
);
compressionMethod
=
signatureSize
==
nclasses
?
COMPRESSION_NONE
:
_compressionMethod
;
leavesPerStruct
=
1
<<
structSize
;
...
...
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