Skip to content
Snippets Groups Projects
Commit c3e8b67a authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

DOX:sift

parent 2e0b0229
Branches
Tags
No related merge requests found
...@@ -47,13 +47,13 @@ ADD_TEST(dmTeSimpleDisparityMapEstimationExampleTest ${EXE_TESTS} ...@@ -47,13 +47,13 @@ ADD_TEST(dmTeSimpleDisparityMapEstimationExampleTest ${EXE_TESTS}
ADD_TEST(dmTeEstimateAffineTransformationExampleTest ${EXE_TESTS} ADD_TEST(dmTeEstimateAffineTransformationExampleTest ${EXE_TESTS}
--compare-image ${TOL} --compare-image ${TOL}
${BASELINE}/ROISpot5.png ${BASELINE}/EstimateAffineTransformationOutput.png
${TEMP}/otbEstimateAffineTransformationOutput.tif ${TEMP}/AffineTransformationOutput.png
EstimateAffineTransformationExampleTest EstimateAffineTransformationExampleTest
${INPUTDATA}/ROISpot5.png ${INPUTDATA}/QB_Suburb.png
${INPUTDATA}/ROISpot5Warped.png ${INPUTDATA}/QB_Suburb13x17y.png
${TEMP}/otbEstimateAffineTransformationOutput.tif ${TEMP}/AffineTransformationOutput.png
2 3 0 0 0.5 2 3 0 0 0.5 1
) )
INCLUDE_DIRECTORIES(${OTB_SOURCE_DIR}/Testing/Code) INCLUDE_DIRECTORIES(${OTB_SOURCE_DIR}/Testing/Code)
......
...@@ -75,10 +75,10 @@ ...@@ -75,10 +75,10 @@
int main (int argc, char* argv[]) int main (int argc, char* argv[])
{ {
if (argc!= 9) if (argc!= 10)
{ {
std::cerr <<"Usage: "<<argv[0]; std::cerr <<"Usage: "<<argv[0];
std::cerr<<"fixedFileName movingFileName resamplingImageFileName octaves scales threshold ratio secondOrderThreshold" << std::endl; std::cerr<<"fixedFileName movingFileName resamplingImageFileName octaves scales threshold ratio secondOrderThreshold useBackMatching" << std::endl;
return EXIT_FAILURE; return EXIT_FAILURE;
} }
...@@ -91,7 +91,7 @@ int main (int argc, char* argv[]) ...@@ -91,7 +91,7 @@ int main (int argc, char* argv[])
float threshold = atof(argv[6]); float threshold = atof(argv[6]);
float ratio = atof(argv[7]); float ratio = atof(argv[7]);
const double secondOrderThreshold = atof(argv[8]); const double secondOrderThreshold = atof(argv[8]);
const bool useBackMatching = atoi(argv[9]);
const unsigned int Dimension = 2; const unsigned int Dimension = 2;
// Software Guide : BeginLatex // Software Guide : BeginLatex
...@@ -244,7 +244,7 @@ int main (int argc, char* argv[]) ...@@ -244,7 +244,7 @@ int main (int argc, char* argv[])
filter2->SetDoGThreshold(threshold); filter2->SetDoGThreshold(threshold);
filter2->SetEdgeThreshold(ratio); filter2->SetEdgeThreshold(ratio);
// Software Guide : EndCodeSnippet // Software Guide : EndCodeSnippet
/*
std::cout << "SIFT process fixed image" << std::endl; std::cout << "SIFT process fixed image" << std::endl;
filter1->Update(); filter1->Update();
std::cout << "SIFT process moving image" << std::endl; std::cout << "SIFT process moving image" << std::endl;
...@@ -259,7 +259,7 @@ int main (int argc, char* argv[]) ...@@ -259,7 +259,7 @@ int main (int argc, char* argv[])
typedef PointSetType::PointsContainer PointsContainer; typedef PointSetType::PointsContainer PointsContainer;
PointsContainer::Pointer ptContainer1,ptContainer2; PointsContainer::Pointer ptContainer1,ptContainer2;
//Save point container to extract 2 points container with size = min (container1, container2) //Save point container to extract 2 points container with size = min (container1, container2)
//TODO simplify subset selection in this itk::PointSet //TODO simplify subset selection in this itk::PointSet
ptContainer1 = ptSet1->GetPoints(); ptContainer1 = ptSet1->GetPoints();
...@@ -306,10 +306,11 @@ int main (int argc, char* argv[]) ...@@ -306,10 +306,11 @@ int main (int argc, char* argv[])
//TODO use SIFT filters outputs or subset of pointset??? //TODO use SIFT filters outputs or subset of pointset???
//euclideanMatcher->SetInput1(ptSet1); //euclideanMatcher->SetInput1(ptSet1);
//euclideanMatcher->SetInput2(ptSet2); //euclideanMatcher->SetInput2(ptSet2);
*/
euclideanMatcher->SetInput1(filter1->GetOutput()); euclideanMatcher->SetInput1(filter1->GetOutput());
euclideanMatcher->SetInput2(filter2->GetOutput()); euclideanMatcher->SetInput2(filter2->GetOutput());
bool useBackMatching = 0; //bool useBackMatching = 0;
euclideanMatcher->SetDistanceThreshold(secondOrderThreshold); euclideanMatcher->SetDistanceThreshold(secondOrderThreshold);
euclideanMatcher->SetUseBackMatching(useBackMatching); euclideanMatcher->SetUseBackMatching(useBackMatching);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment