Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
8303c36f
Commit
8303c36f
authored
Dec 05, 2008
by
Emmanuel Christophe
Browse files
TEST: adding example test
parent
e248a4b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Examples/IO/CMakeLists.txt
View file @
8303c36f
...
...
@@ -109,6 +109,7 @@ IF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )
SET
(
BASELINE
${
OTB_DATA_ROOT
}
/Baseline/Examples/IO
)
SET
(
DATA
${
OTB_DATA_ROOT
}
/Input
)
SET
(
INPUTDATA
${
OTB_SOURCE_DIR
}
/Examples/Data
)
SET
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
...
...
@@ -147,7 +148,20 @@ ADD_TEST(DEMToImageGeneratorTest ${EXE_TESTS}
-0.002
${
INPUTDATA
}
/DEM_srtm
)
IF
(
ITK_USE_REVIEW
)
ADD_TEST
(
LidarToImageExampleTest
${
EXE_TESTS
}
--compare-image
${
TOL
}
${
BASELINE
}
/lidar-image-4.hdr
${
TEMP
}
/lidar-image-4.hdr
LidarToImageExampleTest
${
DATA
}
/TO_core_last_zoom.las
${
TEMP
}
/lidar-image-4.hdr
${
TEMP
}
/lidar-image-4.png
1.0
5
4
)
ENDIF
(
ITK_USE_REVIEW
)
ADD_EXECUTABLE
(
otbIOExamplesTests otbIOExamplesTests.cxx
)
TARGET_LINK_LIBRARIES
(
otbIOExamplesTests otbossim OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale OTBProjections ITKIO ITKAlgorithms ITKStatistics ITKCommon
${
OTB_IO_UTILITIES_DEPENDENT_LIBRARIES
}
)
...
...
Examples/IO/LidarToImageExample.cxx
View file @
8303c36f
...
...
@@ -22,13 +22,13 @@
// Software Guide : BeginCommandLineArgs
// INPUTS: {TO_core_last_zoom.las}
// OUTPUTS: {lidar-image-4.hdr}, {lidar-image-4.png}
// 1
0
.0 5 4
// 1.0 5 4
// Software Guide : EndCommandLineArgs
// Software Guide : BeginCommandLineArgs
// INPUTS: {TO_core_last_zoom.las}
// OUTPUTS: {lidar-image-8.hdr}, {lidar-image-8.png}
// 1
0
.0 5 8
// 1.0 5 8
// Software Guide : EndCommandLineArgs
...
...
Examples/IO/otbIOExamplesTests.cxx
View file @
8303c36f
...
...
@@ -27,6 +27,7 @@ void RegisterTests()
{
REGISTER_TEST
(
ExtractROITest
);
REGISTER_TEST
(
DEMToImageGeneratorTest
);
REGISTER_TEST
(
LidarToImageExampleTest
);
}
#undef main
...
...
@@ -37,3 +38,6 @@ REGISTER_TEST(DEMToImageGeneratorTest);
#define main DEMToImageGeneratorTest
#include "DEMToImageGenerator.cxx"
#undef main
#define main LidarToImageExampleTest
#include "LidarToImageExample.cxx"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment