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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
71d28763
Commit
71d28763
authored
15 years ago
by
Etienne Bougoin
Browse files
Options
Downloads
Plain Diff
MRG
parents
177a7313
afed7fb9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Examples/Tutorials/CMakeLists.txt
+10
-118
10 additions, 118 deletions
Examples/Tutorials/CMakeLists.txt
with
10 additions
and
118 deletions
Examples/Tutorials/CMakeLists.txt
+
10
−
118
View file @
71d28763
PROJECT
(
TutorialsExamples
)
INCLUDE_REGULAR_EXPRESSION
(
"^.*$"
)
PROJECT
(
Tutorials
)
FIND_PACKAGE
(
OTB
)
IF
(
OTB_FOUND
)
INCLUDE
(
${
OTB_USE_FILE
}
)
ELSE
(
OTB_FOUND
)
MESSAGE
(
FATAL_ERROR
"Cannot build OTB project without OTB. Please set OTB_DIR."
)
ENDIF
(
OTB_FOUND
)
ADD_EXECUTABLE
(
HelloWorldOTB HelloWorldOTB.cxx
)
TARGET_LINK_LIBRARIES
(
HelloWorldOTB OTBCommon OTBIO
${
OTB_IO_UTILITIES_DEPENDENT_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
HelloWorldOTB OTBCommon OTBIO
)
ADD_EXECUTABLE
(
Pipeline Pipeline.cxx
)
TARGET_LINK_LIBRARIES
(
Pipeline OTBCommon OTBIO
)
ADD_EXECUTABLE
(
FilteringPipeline FilteringPipeline.cxx
)
TARGET_LINK_LIBRARIES
(
FilteringPipeline OTBCommon OTBIO
)
ADD_EXECUTABLE
(
ScalingPipeline ScalingPipeline.cxx
)
TARGET_LINK_LIBRARIES
(
ScalingPipeline OTBCommon OTBIO
)
ADD_EXECUTABLE
(
Multispectral Multispectral.cxx
)
TARGET_LINK_LIBRARIES
(
Multispectral OTBCommon OTBIO
)
ADD_EXECUTABLE
(
SmarterFilteringPipeline SmarterFilteringPipeline.cxx
)
TARGET_LINK_LIBRARIES
(
SmarterFilteringPipeline OTBCommon OTBIO
)
IF
(
OTB_USE_VISU_GUI
)
ADD_EXECUTABLE
(
SimpleViewer SimpleViewer.cxx
)
TARGET_LINK_LIBRARIES
(
SimpleViewer OTBCommon OTBIO OTBGui OTBVisualization
${
OTB_VISU_GUI_LIBRARIES
}
)
# The basic application tutorial makes use of the otbApplicationsCommon library which is built in OTB-Applications package.
# Therefore this tutorial will not compile until we move the OTBApplcationsCommon lib to the OTB. Until then,
# the following line will be commented out.
# SUBDIRS(BasicApplication)
ENDIF
(
OTB_USE_VISU_GUI
)
ADD_EXECUTABLE
(
OrthoFusion OrthoFusion.cxx
)
TARGET_LINK_LIBRARIES
(
OrthoFusion OTBFusion OTBProjections OTBCommon OTBIO
)
IF
(
NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING
)
SET
(
BASELINE
${
OTB_DATA_ROOT
}
/Baseline/Examples/Tutorials
)
SET
(
INPUTDATA
${
OTB_DATA_ROOT
}
/Examples
)
#Remote sensing images (large images )
IF
(
OTB_DATA_USE_LARGEINPUT
)
SET
(
INPUTLARGEDATA
${
OTB_DATA_LARGEINPUT_ROOT
}
)
ENDIF
(
OTB_DATA_USE_LARGEINPUT
)
SET
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
SET
(
EXE_TESTS
${
CXX_TEST_PATH
}
/otbTutorialsExamplesTests
)
SET
(
TOL 0.0
)
ADD_TEST
(
trTeTutorialsPipelineTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/TutorialsPipelineOutput.png
${
TEMP
}
/TutorialsPipelineOutput.png
TutorialsPipelineTest
${
INPUTDATA
}
/QB_Suburb.png
${
TEMP
}
/TutorialsPipelineOutput.png
)
ADD_TEST
(
trTeTutorialsFilteringPipelineTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/TutorialsFilteringPipelineOutput.png
${
TEMP
}
/TutorialsFilteringPipelineOutput.png
TutorialsFilteringPipelineTest
${
INPUTDATA
}
/QB_Suburb.png
${
TEMP
}
/TutorialsFilteringPipelineOutput.png
)
ADD_TEST
(
trTeTutorialsScalingPipelineTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/TutorialsScalingPipelineOutput.png
${
TEMP
}
/TutorialsScalingPipelineOutput.png
TutorialsScalingPipelineTest
${
INPUTDATA
}
/QB_Suburb.png
${
TEMP
}
/TutorialsScalingPipelineOutput.png
)
ADD_TEST
(
trTeTutorialsMultispectralTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
2
${
BASELINE
}
/MultispectralOutput1.tif
${
TEMP
}
/MultispectralOutput1.tif
${
BASELINE
}
/MultispectralOutput2.tif
${
TEMP
}
/MultispectralOutput2.tif
TutorialsMultispectralTest
${
INPUTDATA
}
/qb_RoadExtract.tif
${
TEMP
}
/MultispectralOutput1.tif
${
TEMP
}
/MultispectralOutput2.tif
)
ADD_TEST
(
trTeTutorialsSmarterFilteringPipelineTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/TutorialsSmarterFilteringPipelineOutput.png
${
TEMP
}
/TutorialsSmarterFilteringPipelineOutput.png
TutorialsSmarterFilteringPipelineTest
-in
${
INPUTDATA
}
/QB_Suburb.png
-out
${
TEMP
}
/TutorialsSmarterFilteringPipelineOutput.png
-d 1.5
-i 2
-a 0.1
)
IF
(
OTB_DATA_USE_LARGEINPUT
)
ADD_TEST
(
trTeTutorialsOrthoFusionTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/TutorialsOrthoFusionOutput.tif
${
TEMP
}
/TutorialsOrthoFusionOutput.tif
TutorialsOrthoFusionTest
${
INPUTLARGEDATA
}
/QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF
${
INPUTLARGEDATA
}
/QUICKBIRD/TOULOUSE/000000128955_01_P001_MUL/02APR01105228-M1BS-000000128955_01_P001.TIF
${
TEMP
}
/TutorialsOrthoFusionOutput.tif
31
N
375000
4828100
500
500
0.6
-0.6
)
ENDIF
(
OTB_DATA_USE_LARGEINPUT
)
INCLUDE_DIRECTORIES
(
${
OTB_SOURCE_DIR
}
/Testing/Code
)
ADD_EXECUTABLE
(
otbTutorialsExamplesTests otbTutorialsExamplesTests.cxx
)
TARGET_LINK_LIBRARIES
(
otbTutorialsExamplesTests ITKAlgorithms ITKStatistics ITKNumerics OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale OTBFusion OTBTesting
)
ENDIF
(
NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING
)
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