Clean-up of the iostream manipulator in AKAZEConfig.
This commit is contained in:
parent
d8c9bb777e
commit
d37220e8ff
@ -11,13 +11,6 @@
|
||||
// OpenCV
|
||||
#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
|
||||
const float gauss25[7][7] = {
|
||||
@ -126,34 +119,6 @@ struct AKAZEOptions {
|
||||
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 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;
|
||||
}
|
||||
};
|
||||
|
||||
/* ************************************************************************* */
|
||||
|
Loading…
x
Reference in New Issue
Block a user