Skip to content
Snippets Groups Projects
Commit d5334ef2 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Adding a few options on matching

parent 2e72af2d
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,16 @@ private:
AddChoice("algorithm.sift","SIFT algorithm");
AddChoice("algorithm.surf","SURF algorithm");
AddParameter(ParameterType_Float,"threshold","Distance threshold for matching");
SetParameterDescription("threshold","The distance threshold for matching.");
SetMinimumParameterFloatValue("threshold",0.0);
SetDefaultParameterFloat("threshold",0.6);
AddParameter(ParameterType_Empty,"backmatching","Use back-matching to filter matches.");
SetParameterDescription("backmatching","If set to true, matches should be consistent in both ways.");
MandatoryOff("backmatching");
DisableParameter("backmatching");
AddParameter(ParameterType_Choice,"mode","Keypoints search mode");
AddChoice("mode.full","Extract and match all keypoints (no streaming)");
......@@ -199,6 +209,8 @@ private:
matchingFilter->SetInput1(surf1->GetOutput());
matchingFilter->SetInput2(surf2->GetOutput());
matchingFilter->SetDistanceThreshold(GetParameterFloat("threshold"));
matchingFilter->SetUseBackMatching(IsParameterEnabled("backmatching"));
}
try
......
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