mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Fixed reading/writing parameters for OrbDescriptorExtractor
This commit is contained in:
parent
ff9da914ec
commit
be5328178f
@ -261,6 +261,7 @@ void OrbDescriptorExtractor::computeImpl(const cv::Mat& image, std::vector<cv::K
|
||||
void OrbDescriptorExtractor::read(const cv::FileNode& fn)
|
||||
{
|
||||
params_.read(fn);
|
||||
orb_ = ORB(0, params_);
|
||||
}
|
||||
void OrbDescriptorExtractor::write(cv::FileStorage& fs) const
|
||||
{
|
||||
|
@ -445,7 +445,7 @@ void ORB::CommonParams::read(const FileNode& fn)
|
||||
{
|
||||
scale_factor_ = fn["scaleFactor"];
|
||||
n_levels_ = int(fn["nLevels"]);
|
||||
first_level_ = int(fn["firsLevel"]);
|
||||
first_level_ = int(fn["firstLevel"]);
|
||||
edge_threshold_ = fn["edgeThreshold"];
|
||||
patch_size_ = fn["patchSize"];
|
||||
}
|
||||
@ -454,7 +454,7 @@ void ORB::CommonParams::write(FileStorage& fs) const
|
||||
{
|
||||
fs << "scaleFactor" << scale_factor_;
|
||||
fs << "nLevels" << int(n_levels_);
|
||||
fs << "firsLevel" << int(first_level_);
|
||||
fs << "firstLevel" << int(first_level_);
|
||||
fs << "edgeThreshold" << int(edge_threshold_);
|
||||
fs << "patchSize" << int(patch_size_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user