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
d6d8ce62
Commit
d6d8ce62
authored
13 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
TEST: add more tests for ExtractROI
parent
4094123b
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
Testing/Applications/Util/CMakeLists.txt
+58
-7
58 additions, 7 deletions
Testing/Applications/Util/CMakeLists.txt
with
58 additions
and
7 deletions
Testing/Applications/Util/CMakeLists.txt
+
58
−
7
View file @
d6d8ce62
set
(
TEST_DRIVER otbTestDriver
--add-before-env ITK_AUTOLOAD_PATH $<TARGET_FILE_DIR:otbapp_
Smoothing
>
)
--add-before-env ITK_AUTOLOAD_PATH $<TARGET_FILE_DIR:otbapp_
ReadImageInfo
>
)
add_test
(
NAME
exTv
RescaleTest
#--- Rescale ---#
add_test
(
NAME
apTvUt
RescaleTest
COMMAND otbTestDriver
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
Rescale
...
...
@@ -13,7 +13,8 @@ add_test(NAME exTvRescaleTest
--outmin 20
--outmax 150
)
add_test
(
NAME exTvSmoothingTest
#--- Smoothing ---#
add_test
(
NAME apTvUtSmoothingTest
COMMAND otbTestDriver
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
Smoothing
...
...
@@ -22,15 +23,43 @@ add_test(NAME exTvSmoothingTest
--out
${
TEMP
}
/owTvSmoothingTest2.tif
--type mean
)
add_test
(
NAME exTvReadImageInfoTest
#--- ReadImageInfo ---#
add_test
(
NAME apTvUtReadImageInfoTest
COMMAND otbTestDriver
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
ReadImageInfo
--modulePath $<TARGET_FILE_DIR:otbapp_ReadImageInfo>
--in
${
INPUTDATA
}
/poupees.tif
)
add_test
(
NAME exTvExtractROIRightInputFile
COMMAND otbTestDriver --compare-image
${
TOL
}
IF
(
OTB_DATA_USE_LARGEINPUT
)
add_test
(
NAME apTvUtReadImageInfoSpot5
COMMAND otbTestDriver
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
ReadImageInfo
--modulePath $<TARGET_FILE_DIR:otbapp_ReadImageInfo>
--in
${
LARGEDATA
}
/SPOT5/TEHERAN/IMAGERY.TIF
)
add_test
(
NAME apTvUtReadImageInfoERS
COMMAND otbTestDriver
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
ReadImageInfo
--modulePath $<TARGET_FILE_DIR:otbapp_ReadImageInfo>
--in
${
LARGEDATA
}
/SAR_ERS2_SLCI_SCENE1/DAT_01.001
)
add_test
(
NAME apTvUtReadImageInfoRADARSAT1
COMMAND otbTestDriver
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
ReadImageInfo
--modulePath $<TARGET_FILE_DIR:otbapp_ReadImageInfo>
--in
${
LARGEDATA
}
/RADARSAT1/GOMA/SCENE01/DAT_01.001
)
ENDIF
(
OTB_DATA_USE_LARGEINPUT
)
#--- ExtractROI ---#
add_test
(
NAME apTvUtExtractROIRightInputFile
COMMAND otbTestDriver --compare-image
${
NOTOL
}
${
INPUTDATA
}
/couleurs_extrait.png
${
TEMP
}
/utExtractROIRightInputFile.tif
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
...
...
@@ -38,3 +67,25 @@ add_test(NAME exTvExtractROIRightInputFile
--modulePath $<TARGET_FILE_DIR:otbapp_ExtractROI>
--in
${
INPUTDATA
}
/couleurs_extrait.png
--out
${
TEMP
}
/utExtractROIRightInputFile.tif
)
add_test
(
NAME apTvUtExtractROISizeNULL
COMMAND otbTestDriver --compare-image
${
NOTOL
}
${
INPUTDATA
}
/couleurs_extrait.png
${
TEMP
}
/utExtractROISizeNULL.tif
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
ExtractROI
--modulePath $<TARGET_FILE_DIR:otbapp_ExtractROI>
--in
${
INPUTDATA
}
/couleurs_extrait.png
--out
${
TEMP
}
/utExtractROISizeNULL.tif
--sizex 0
)
add_test
(
NAME apTvUtExtractROISizeTooBig
COMMAND otbTestDriver --compare-image
${
NOTOL
}
${
INPUTDATA
}
/couleurs_extrait.png
${
TEMP
}
/utExtractROISizeNULL.tif
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
ExtractROI
--modulePath $<TARGET_FILE_DIR:otbapp_ExtractROI>
--in
${
INPUTDATA
}
/couleurs_extrait.png
--out
${
TEMP
}
/utExtractROISizeNULL.tif
--sizex 1000000
)
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