Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Belvire
otb
Commits
c3e8b67a
Commit
c3e8b67a
authored
15 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
DOX:sift
parent
2e0b0229
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/DisparityMap/CMakeLists.txt
+6
-6
6 additions, 6 deletions
Examples/DisparityMap/CMakeLists.txt
Examples/DisparityMap/EstimateAffineTransformationExample.cxx
+7
-6
7 additions, 6 deletions
...ples/DisparityMap/EstimateAffineTransformationExample.cxx
with
13 additions
and
12 deletions
Examples/DisparityMap/CMakeLists.txt
+
6
−
6
View file @
c3e8b67a
...
...
@@ -47,13 +47,13 @@ ADD_TEST(dmTeSimpleDisparityMapEstimationExampleTest ${EXE_TESTS}
ADD_TEST
(
dmTeEstimateAffineTransformationExampleTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/
ROISpot5
.png
${
TEMP
}
/
otbEstimate
AffineTransformationOutput.
tif
${
BASELINE
}
/
EstimateAffineTransformationOutput
.png
${
TEMP
}
/AffineTransformationOutput.
png
EstimateAffineTransformationExampleTest
${
INPUTDATA
}
/
ROISpot5
.png
${
INPUTDATA
}
/
ROISpot5Warped
.png
${
TEMP
}
/
otbEstimate
AffineTransformationOutput.
tif
2 3 0 0 0.5
${
INPUTDATA
}
/
QB_Suburb
.png
${
INPUTDATA
}
/
QB_Suburb13x17y
.png
${
TEMP
}
/AffineTransformationOutput.
png
2 3 0 0 0.5
1
)
INCLUDE_DIRECTORIES
(
${
OTB_SOURCE_DIR
}
/Testing/Code
)
...
...
This diff is collapsed.
Click to expand it.
Examples/DisparityMap/EstimateAffineTransformationExample.cxx
+
7
−
6
View file @
c3e8b67a
...
...
@@ -75,10 +75,10 @@
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
argc
!=
9
)
if
(
argc
!=
10
)
{
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
;
}
...
...
@@ -91,7 +91,7 @@ int main (int argc, char* argv[])
float
threshold
=
atof
(
argv
[
6
]);
float
ratio
=
atof
(
argv
[
7
]);
const
double
secondOrderThreshold
=
atof
(
argv
[
8
]);
const
bool
useBackMatching
=
atoi
(
argv
[
9
]);
const
unsigned
int
Dimension
=
2
;
// Software Guide : BeginLatex
...
...
@@ -244,7 +244,7 @@ int main (int argc, char* argv[])
filter2
->
SetDoGThreshold
(
threshold
);
filter2
->
SetEdgeThreshold
(
ratio
);
// Software Guide : EndCodeSnippet
/*
std::cout << "SIFT process fixed image" << std::endl;
filter1->Update();
std::cout << "SIFT process moving image" << std::endl;
...
...
@@ -259,7 +259,7 @@ int main (int argc, char* argv[])
typedef PointSetType::PointsContainer PointsContainer;
PointsContainer::Pointer ptContainer1,ptContainer2;
//Save point container to extract 2 points container with size = min (container1, container2)
//TODO simplify subset selection in this itk::PointSet
ptContainer1 = ptSet1->GetPoints();
...
...
@@ -306,10 +306,11 @@ int main (int argc, char* argv[])
//TODO use SIFT filters outputs or subset of pointset???
//euclideanMatcher->SetInput1(ptSet1);
//euclideanMatcher->SetInput2(ptSet2);
*/
euclideanMatcher
->
SetInput1
(
filter1
->
GetOutput
());
euclideanMatcher
->
SetInput2
(
filter2
->
GetOutput
());
bool
useBackMatching
=
0
;
//
bool useBackMatching = 0;
euclideanMatcher
->
SetDistanceThreshold
(
secondOrderThreshold
);
euclideanMatcher
->
SetUseBackMatching
(
useBackMatching
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment