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

TEST:estimate affine transfo

parent 65d550a5
Branches
Tags
No related merge requests found
......@@ -45,7 +45,7 @@ ADD_TEST(dmTeSimpleDisparityMapEstimationExampleTest ${EXE_TESTS}
100 10 15 10 10 250 0.9
)
ADD_TEST(dmTeEstimateAffineTransformationExampleTest ${PROJECTIONS_TESTS2}
ADD_TEST(dmTeEstimateAffineTransformationExampleTest ${EXE_TESTS}
--compare-image ${TOL}
${BASELINE}/ROI_IKO_PAN_LesHalles.tif
${TEMP}/otbEstimateAffineTransformationOutput.tif
......
......@@ -67,6 +67,7 @@
// Software Guide : EndCodeSnippet
#include "otbImage.h"
#include "otbMacro.h"
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbImageFileWriter.h"
......@@ -98,14 +99,13 @@ int main (int argc, char* argv[])
// Software Guide : BeginCodeSnippet
typedef double RealType;
//typedef float RealType;
typedef unsigned char OutputPixelType;
typedef otb::Image<RealType,Dimension> ImageType;
typedef otb::Image<OutputPixelType,Dimension> OutputImageType;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
// Software Guide : BeginLatex
//
// The SIFTs obtained for the matching will be stored in vector
// form inside a point set. So we need the following types:
......@@ -264,7 +264,9 @@ int main (int argc, char* argv[])
for (LandmarkListType::Iterator it = landmarkList->Begin();
it != landmarkList->End(); ++it)
{
estimator->AddTiePoints(it.Get()->GetPoint1(),it.Get()->GetPoint2());
otbMsgDevMacro(<<"landmark1" << it.Get()->GetPoint1() );
otbMsgDevMacro(<<"landmark2" << it.Get()->GetPoint2() );
estimator->AddTiePoints(it.Get()->GetPoint1(),it.Get()->GetPoint2());
}
// Trigger computation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment