Skip to content
Snippets Groups Projects
Commit 08b77be0 authored by Angel Santamaria-Navarro's avatar Angel Santamaria-Navarro
Browse files

added akaze and fixed problem with yaml

parent 67e3f479
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 20 deletions
......@@ -21,7 +21,7 @@ static ParamsBasePtr createParamsBRISKDetector(const std::string & _filename_dot
if (!yaml_params.IsNull())
{
Node d_yaml = yaml_params["detector"];
if(d_yaml["type"].as<string>() == "BRISK DET")
if(d_yaml["type"].as<string>() == "BRISK")
{
params_ptr->thresh = d_yaml["thresh"].as<int>();
params_ptr->octaves = d_yaml["octaves"].as<int>();
......
......@@ -41,7 +41,7 @@ DetectorBasePtr setupDetector(const std::string& _type, const std::string& _uniq
#ifdef USING_YAML
DetectorBasePtr setupDetector(const std::string& _type, const std::string& _unique_name, const std::string& _filename_dot_yaml)
{
ParamsBasePtr params_ptr = ParamsFactory::get().create(_type, _filename_dot_yaml);
ParamsBasePtr params_ptr = ParamsFactory::get().create(_type+" DET", _filename_dot_yaml);
return setupDetector(_type, _unique_name, params_ptr);
}
#endif
......
......@@ -13,5 +13,5 @@ DetectorFAST::~DetectorFAST(void)
// Register in the DetectorsFactory
namespace vision_utils
{
VU_REGISTER_DETECTOR("FAST DET", DetectorFAST);
VU_REGISTER_DETECTOR("FAST", DetectorFAST);
} /* namespace vision_utils */
......@@ -21,7 +21,7 @@ static ParamsBasePtr createParamsFASTDetector(const std::string & _filename_dot_
if (!yaml_params.IsNull())
{
Node d_yaml = yaml_params["detector"];
if(d_yaml["type"].as<string>() == "FAST DET")
if(d_yaml["type"].as<string>() == "FAST")
{
params_ptr->threshold = d_yaml["threshold"].as<int>();
params_ptr->nonmaxSuppression = d_yaml["nonmaxSuppression"].as<bool>();
......
......@@ -13,5 +13,5 @@ DetectorGFTT::~DetectorGFTT(void)
// Register in the DetectorsFactory
namespace vision_utils
{
VU_REGISTER_DETECTOR("GFTT DET", DetectorGFTT);
VU_REGISTER_DETECTOR("GFTT", DetectorGFTT);
} /* namespace vision_utils */
......@@ -21,7 +21,7 @@ static ParamsBasePtr createParamsGFTTDetector(const std::string & _filename_dot_
if (!yaml_params.IsNull())
{
Node d_yaml = yaml_params["detector"];
if(d_yaml["type"].as<string>() == "GFTT DET")
if(d_yaml["type"].as<string>() == "GFTT")
{
params_ptr->maxCorners = d_yaml["maxCorners"].as<int>();
params_ptr->qualityLevel = d_yaml["qualityLevel"].as<double>();
......
......@@ -13,5 +13,5 @@ DetectorHARRIS::~DetectorHARRIS(void)
// Register in the DetectorsFactory
namespace vision_utils
{
VU_REGISTER_DETECTOR("HARRIS DET", DetectorHARRIS);
VU_REGISTER_DETECTOR("HARRIS", DetectorHARRIS);
} /* namespace vision_utils */
......@@ -21,7 +21,7 @@ static ParamsBasePtr createParamsHARRISDetector(const std::string & _filename_do
if (!yaml_params.IsNull())
{
Node d_yaml = yaml_params["detector"];
if(d_yaml["type"].as<string>() == "HARRIS DET")
if(d_yaml["type"].as<string>() == "HARRIS")
{
params_ptr->maxCorners = d_yaml["maxCorners"].as<int>();
params_ptr->qualityLevel = d_yaml["qualityLevel"].as<double>();
......
......@@ -13,5 +13,5 @@ DetectorKAZE::~DetectorKAZE(void)
// Register in the DetectorsFactory
namespace vision_utils
{
VU_REGISTER_DETECTOR("KAZE DET", DetectorKAZE);
VU_REGISTER_DETECTOR("KAZE", DetectorKAZE);
} /* namespace vision_utils */
......@@ -21,7 +21,7 @@ static ParamsBasePtr createParamsKAZEDetector(const std::string & _filename_dot_
if (!yaml_params.IsNull())
{
Node d_yaml = yaml_params["detector"];
if(d_yaml["type"].as<string>() == "KAZE DET")
if(d_yaml["type"].as<string>() == "KAZE")
{
params_ptr->extended = d_yaml["extended"].as<bool>();
params_ptr->upright = d_yaml["upright"].as<bool>();
......
......@@ -13,5 +13,5 @@ DetectorMSER::~DetectorMSER(void)
// Register in the DetectorsFactory
namespace vision_utils
{
VU_REGISTER_DETECTOR("MSER DET", DetectorMSER);
VU_REGISTER_DETECTOR("MSER", DetectorMSER);
} /* namespace vision_utils */
......@@ -21,7 +21,7 @@ static ParamsBasePtr createParamsMSERDetector(const std::string & _filename_dot_
if (!yaml_params.IsNull())
{
Node d_yaml = yaml_params["detector"];
if(d_yaml["type"].as<string>() == "MSER DET")
if(d_yaml["type"].as<string>() == "MSER")
{
params_ptr->delta = d_yaml["delta"].as<int>();
params_ptr->min_area = d_yaml["min_area"].as<int>();
......
......@@ -13,5 +13,5 @@ DetectorORB::~DetectorORB(void)
// Register in the DetectorsFactory
namespace vision_utils
{
VU_REGISTER_DETECTOR("ORB DET", DetectorORB);
VU_REGISTER_DETECTOR("ORB", DetectorORB);
} /* namespace vision_utils */
......@@ -21,7 +21,7 @@ static ParamsBasePtr createParamsORBDetector(const std::string & _filename_dot_y
if (!yaml_params.IsNull())
{
Node d_yaml = yaml_params["detector"];
if(d_yaml["type"].as<string>() == "ORB DET")
if(d_yaml["type"].as<string>() == "ORB")
{
params_ptr->nfeatures = d_yaml["nfeatures"].as<unsigned int>();
params_ptr->scaleFactor = d_yaml["scale factor"].as<float>();
......
......@@ -13,5 +13,5 @@ DetectorSBD::~DetectorSBD(void)
// Register in the DetectorsFactory
namespace vision_utils
{
VU_REGISTER_DETECTOR("SBD DET", DetectorSBD);
VU_REGISTER_DETECTOR("SBD", DetectorSBD);
} /* namespace vision_utils */
......@@ -21,7 +21,7 @@ static ParamsBasePtr createParamsSBDDetector(const std::string & _filename_dot_y
if (!yaml_params.IsNull())
{
Node d_yaml = yaml_params["detector"];
if(d_yaml["type"].as<string>() == "SBD DET")
if(d_yaml["type"].as<string>() == "SBD")
{
params_ptr->cv_params.thresholdStep = d_yaml["thresholdStep"].as<float>();
params_ptr->cv_params.minThreshold = d_yaml["minThreshold"].as<float>();
......
......@@ -13,5 +13,5 @@ DetectorSIFT::~DetectorSIFT(void)
// Register in the DetectorsFactory
namespace vision_utils
{
VU_REGISTER_DETECTOR("SIFT DET", DetectorSIFT);
VU_REGISTER_DETECTOR("SIFT", DetectorSIFT);
} /* namespace vision_utils */
......@@ -21,7 +21,7 @@ static ParamsBasePtr createParamsSIFTDetector(const std::string & _filename_dot_
if (!yaml_params.IsNull())
{
Node d_yaml = yaml_params["detector"];
if(d_yaml["type"].as<string>() == "SIFT DET")
if(d_yaml["type"].as<string>() == "SIFT")
{
params_ptr->nfeatures = d_yaml["nfeatures"].as<int>();
params_ptr->nOctaveLayers = d_yaml["nOctaveLayers"].as<int>();
......
......@@ -13,5 +13,5 @@ DetectorSURF::~DetectorSURF(void)
// Register in the DetectorsFactory
namespace vision_utils
{
VU_REGISTER_DETECTOR("SURF DET", DetectorSURF);
VU_REGISTER_DETECTOR("SURF", DetectorSURF);
} /* namespace vision_utils */
......@@ -21,7 +21,7 @@ static ParamsBasePtr createParamsSURFDetector(const std::string & _filename_dot_
if (!yaml_params.IsNull())
{
Node d_yaml = yaml_params["detector"];
if(d_yaml["type"].as<string>() == "SURF DET")
if(d_yaml["type"].as<string>() == "SURF")
{
params_ptr->hessianThreshold = d_yaml["hessianThreshold"].as<double>();
params_ptr->nOctaves = d_yaml["nOctaves"].as<int>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment