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
d37220e8
Commit
d37220e8
authored
Apr 26, 2014
by
Ievgen Khvedchenia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean-up of the iostream manipulator in AKAZEConfig.
parent
d8c9bb77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
42 deletions
+7
-42
AKAZEConfig.h
modules/features2d/src/akaze/AKAZEConfig.h
+7
-42
No files found.
modules/features2d/src/akaze/AKAZEConfig.h
View file @
d37220e8
...
@@ -11,23 +11,16 @@
...
@@ -11,23 +11,16 @@
// OpenCV
// OpenCV
#include "precomp.hpp"
#include "precomp.hpp"
// System Includes
#include <string>
#include <vector>
#include <cmath>
#include <bitset>
#include <iomanip>
/* ************************************************************************* */
/* ************************************************************************* */
/// Lookup table for 2d gaussian (sigma = 2.5) where (0,0) is top left and (6,6) is bottom right
/// Lookup table for 2d gaussian (sigma = 2.5) where (0,0) is top left and (6,6) is bottom right
const
float
gauss25
[
7
][
7
]
=
{
const
float
gauss25
[
7
][
7
]
=
{
{
0
.
025464
81
f
,
0
.
023506
98
f
,
0
.
01
849125
f
,
0
.
0123
9505
f
,
0
.
0070
8017
f
,
0
.
0034462
9
f
,
0
.
00142
946
f
},
{
0
.
025464
81
f
,
0
.
023506
98
f
,
0
.
01
849125
f
,
0
.
0123
9505
f
,
0
.
0070
8017
f
,
0
.
0034462
9
f
,
0
.
00142
946
f
},
{
0
.
023506
98
f
,
0
.
0216
9968
f
,
0
.
01706
957
f
,
0
.
0114420
8
f
,
0
.
006535
82
f
,
0
.
0031
8132
f
,
0
.
00131
956
f
},
{
0
.
023506
98
f
,
0
.
0216
9968
f
,
0
.
01706
957
f
,
0
.
0114420
8
f
,
0
.
006535
82
f
,
0
.
0031
8132
f
,
0
.
00131
956
f
},
{
0
.
01
849125
f
,
0
.
01706
957
f
,
0
.
01342740
f
,
0
.
00
900066
f
,
0
.
00514126
f
,
0
.
00250252
f
,
0
.
00103
800
f
},
{
0
.
01
849125
f
,
0
.
01706
957
f
,
0
.
01342740
f
,
0
.
00
900066
f
,
0
.
00514126
f
,
0
.
00250252
f
,
0
.
00103
800
f
},
{
0
.
0123
9505
f
,
0
.
0114420
8
f
,
0
.
00
900066
f
,
0
.
00603332
f
,
0
.
0034462
9
f
,
0
.
0016774
9
f
,
0
.
0006
9579
f
},
{
0
.
0123
9505
f
,
0
.
0114420
8
f
,
0
.
00
900066
f
,
0
.
00603332
f
,
0
.
0034462
9
f
,
0
.
0016774
9
f
,
0
.
0006
9579
f
},
{
0
.
0070
8017
f
,
0
.
006535
82
f
,
0
.
00514126
f
,
0
.
0034462
9
f
,
0
.
001
96855
f
,
0
.
000
95820
f
,
0
.
0003
9744
f
},
{
0
.
0070
8017
f
,
0
.
006535
82
f
,
0
.
00514126
f
,
0
.
0034462
9
f
,
0
.
001
96855
f
,
0
.
000
95820
f
,
0
.
0003
9744
f
},
{
0
.
0034462
9
f
,
0
.
0031
8132
f
,
0
.
00250252
f
,
0
.
0016774
9
f
,
0
.
000
95820
f
,
0
.
00046640
f
,
0
.
0001
9346
f
},
{
0
.
0034462
9
f
,
0
.
0031
8132
f
,
0
.
00250252
f
,
0
.
0016774
9
f
,
0
.
000
95820
f
,
0
.
00046640
f
,
0
.
0001
9346
f
},
{
0
.
00142
946
f
,
0
.
00131
956
f
,
0
.
00103
800
f
,
0
.
0006
9579
f
,
0
.
0003
9744
f
,
0
.
0001
9346
f
,
0
.
0000
8024
f
}
{
0
.
00142
946
f
,
0
.
00131
956
f
,
0
.
00103
800
f
,
0
.
0006
9579
f
,
0
.
0003
9744
f
,
0
.
0001
9346
f
,
0
.
0000
8024
f
}
};
};
/* ************************************************************************* */
/* ************************************************************************* */
...
@@ -126,34 +119,6 @@ struct AKAZEOptions {
...
@@ -126,34 +119,6 @@ struct AKAZEOptions {
bool
save_scale_space
;
///< Set to true for saving the scale space images
bool
save_scale_space
;
///< Set to true for saving the scale space images
bool
save_keypoints
;
///< Set to true for saving the detected keypoints and descriptors
bool
save_keypoints
;
///< Set to true for saving the detected keypoints and descriptors
bool
verbosity
;
///< Set to true for displaying verbosity information
bool
verbosity
;
///< Set to true for displaying verbosity information
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
AKAZEOptions
&
akaze_options
)
{
os
<<
std
::
left
;
#define CHECK_AKAZE_OPTION(option) \
os << std::setw(33) << #option << " = " << option << std::endl
// Scale-space parameters.
CHECK_AKAZE_OPTION
(
akaze_options
.
omax
);
CHECK_AKAZE_OPTION
(
akaze_options
.
nsublevels
);
CHECK_AKAZE_OPTION
(
akaze_options
.
soffset
);
CHECK_AKAZE_OPTION
(
akaze_options
.
sderivatives
);
CHECK_AKAZE_OPTION
(
akaze_options
.
diffusivity
);
// Detection parameters.
CHECK_AKAZE_OPTION
(
akaze_options
.
dthreshold
);
// Descriptor parameters.
CHECK_AKAZE_OPTION
(
akaze_options
.
descriptor
);
CHECK_AKAZE_OPTION
(
akaze_options
.
descriptor_channels
);
CHECK_AKAZE_OPTION
(
akaze_options
.
descriptor_size
);
// Save scale-space
CHECK_AKAZE_OPTION
(
akaze_options
.
save_scale_space
);
// Verbose option for debug.
CHECK_AKAZE_OPTION
(
akaze_options
.
verbosity
);
#undef CHECK_AKAZE_OPTIONS
return
os
;
}
};
};
/* ************************************************************************* */
/* ************************************************************************* */
...
...
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