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
155f6b8c
Commit
155f6b8c
authored
13 years ago
by
Cyrille Valladeau
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add missing baseline tests + change Tu into Tv prefix in Util
parent
f4bd5410
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Testing/Applications/Hyperspectral/CMakeLists.txt
+6
-2
6 additions, 2 deletions
Testing/Applications/Hyperspectral/CMakeLists.txt
Testing/Applications/Util/CMakeLists.txt
+34
-20
34 additions, 20 deletions
Testing/Applications/Util/CMakeLists.txt
with
40 additions
and
22 deletions
Testing/Applications/Hyperspectral/CMakeLists.txt
+
6
−
2
View file @
155f6b8c
...
...
@@ -49,7 +49,11 @@ OTB_TEST_APPLICATION(NAME apTvHyHyperspectralUnmixing_FCLS
OTB_TEST_APPLICATION
(
NAME apTuHyVertexComponentAnalysis
APP VertexComponentAnalysis
OPTIONS --in
${
OTB_DATA_ROOT
}
/Input/Hyperspectral/synthetic/hsi_cube.tif
--ne 5
--outendm
${
TEMP
}
/apTvHyVertexComponentAnalysis.tif double
)
--ne 5
--outendm
${
TEMP
}
/apTvHyVertexComponentAnalysis.tif double
VALID --compare-image
${
EPSILON_9
}
${
BASELINE
}
/apTvHyVertexComponentAnalysis.tif
${
TEMP
}
/apTvHyVertexComponentAnalysis.tif
)
This diff is collapsed.
Click to expand it.
Testing/Applications/Util/CMakeLists.txt
+
34
−
20
View file @
155f6b8c
...
...
@@ -5,36 +5,42 @@ set(TEST_DRIVER otbTestDriver
#--- Rescale ---#
OTB_TEST_APPLICATION
(
NAME apT
u
UtRescaleTest
OTB_TEST_APPLICATION
(
NAME apT
v
UtRescaleTest
APP Rescale
OPTIONS --in
${
INPUTDATA
}
/poupees.tif
--out
${
TEMP
}
/
owTv
RescaleTest.
tif
--out
${
TEMP
}
/
apTvUt
RescaleTest.
png uint8
--outmin 20
--outmax 150
)
--outmax 150
VALID --compare-image
${
NOTOL
}
${
BASELINE
}
/apTvUtRescaleTest.png
${
TEMP
}
/apTvUtRescaleTest.png
)
#--- Smoothing ---#
OTB_TEST_APPLICATION
(
NAME apT
u
UtSmoothingTest
OTB_TEST_APPLICATION
(
NAME apT
v
UtSmoothingTest
APP Smoothing
OPTIONS --in
${
INPUTDATA
}
/poupees.tif
--out
${
TEMP
}
/apTuUtSmoothingTest2.tif
--type mean
)
--out
${
TEMP
}
/apTvUtSmoothingTest.tif
--type mean
VALID --compare-image
${
NOTOL
}
${
BASELINE
}
/apTvUtSmoothingTest.tif
${
TEMP
}
/apTvUtSmoothingTest.tif
)
#--- ReadImageInfo ---#
OTB_TEST_APPLICATION
(
NAME apT
u
UtReadImageInfoTest
OTB_TEST_APPLICATION
(
NAME apT
v
UtReadImageInfoTest
APP ReadImageInfo
OPTIONS --in
${
INPUTDATA
}
/poupees.tif
)
IF
(
OTB_DATA_USE_LARGEINPUT
)
OTB_TEST_APPLICATION
(
NAME apT
u
UtReadImageInfoSpot5
OTB_TEST_APPLICATION
(
NAME apT
v
UtReadImageInfoSpot5
APP ReadImageInfo
OPTIONS --in
${
LARGEDATA
}
/SPOT5/TEHERAN/IMAGERY.TIF
)
OTB_TEST_APPLICATION
(
NAME apT
u
UtReadImageInfoERS
OTB_TEST_APPLICATION
(
NAME apT
v
UtReadImageInfoERS
APP ReadImageInfo
OPTIONS --in
${
LARGEDATA
}
/SAR_ERS2_SLCI_SCENE1/DAT_01.001
)
OTB_TEST_APPLICATION
(
NAME apT
u
UtReadImageInfoRADARSAT1
OTB_TEST_APPLICATION
(
NAME apT
v
UtReadImageInfoRADARSAT1
APP ReadImageInfo
OPTIONS --in
${
LARGEDATA
}
/RADARSAT1/GOMA/SCENE01/DAT_01.001
)
...
...
@@ -99,7 +105,7 @@ OTB_TEST_APPLICATION(NAME apTvUtBandMath
--exp
"cos(im1b1)+im2b1*im3b1-im3b2+ndvi(im3b3,im3b4)"
VALID --compare-image
${
NOTOL
}
${
INPUTDATA
}
/apTvUtBandMathOutput.tif
${
TEMP
}
/apTvUtBandMathOutput.tif
)
${
TEMP
}
/apTvUtBandMathOutput.tif
)
#--- Split Image application ----
...
...
@@ -119,19 +125,27 @@ OTB_TEST_APPLICATION(NAME apTvUtSplitImage
${
TEMP
}
/apTvUtSplitImageOutput_2.tif
)
#--- Convert ----
OTB_TEST_APPLICATION
(
NAME apT
u
UtConvertBasic
OTB_TEST_APPLICATION
(
NAME apT
v
UtConvertBasic
APP Convert
OPTIONS --in
${
INPUTDATA
}
/QB_Toulouse_Ortho_XS.tif
--out
${
TEMP
}
/apTuUtConvertBasicOutput.tif
)
--out
${
TEMP
}
/apTuUtConvertBasicOutput.tif
VALID --compare-image
${
NOTOL
}
${
INPUTDATA
}
/apTuUtConvertBasicOutput.tif
${
TEMP
}
/apTuUtConvertBasicOutput.tif
)
OTB_TEST_APPLICATION
(
NAME apT
u
UtConvertWithScaling
OTB_TEST_APPLICATION
(
NAME apT
v
UtConvertWithScaling
APP Convert
OPTIONS --in
${
INPUTDATA
}
/QB_Toulouse_Ortho_XS.tif
--out
${
TEMP
}
/apTuUtConvertWithScaling.tif
--type linear
)
--out
${
TEMP
}
/apTvUtConvertWithScalingOutput.tif
--type linear
VALID --compare-image
${
NOTOL
}
${
INPUTDATA
}
/apTvUtConvertWithScalingOutput.tif
${
TEMP
}
/apTvUtConvertWithScalingOutput.tif
)
#--- KmzExport ----
OTB_TEST_APPLICATION
(
NAME apT
u
UtKmzExport
OTB_TEST_APPLICATION
(
NAME apT
v
UtKmzExport
APP KmzExport
OPTIONS --in
${
INPUTDATA
}
/qb_RoadExtract.img
--out
${
TEMP
}
/apTvUtKmzExport.kmz
...
...
@@ -188,14 +202,14 @@ OTB_TEST_APPLICATION(NAME apTvUtVectorDataExtractROIApplication
ENDIF
(
OTB_DATA_USE_LARGEINPUT
)
#--- Concatenate VectorData ---
OTB_TEST_APPLICATION
(
NAME apT
u
UtConcatenateVectorData
OTB_TEST_APPLICATION
(
NAME apT
v
UtConcatenateVectorData
APP ConcatenateVectorData
OPTIONS --vd
${
INPUTDATA
}
/waterways.shp
${
INPUTDATA
}
/france_coastline.shp
--out
${
TEMP
}
/apT
u
UtConcatenateVectorDataOutputTest.shp
--out
${
TEMP
}
/apT
v
UtConcatenateVectorDataOutputTest.shp
VALID --compare-ogr
${
NOTOL
}
${
OTBAPP_BASELINE_FILES
}
/utTvConcatenateVectorData.shp
${
TEMP
}
/apT
u
UtConcatenateVectorDataOutputTest.shp
)
${
TEMP
}
/apT
v
UtConcatenateVectorDataOutputTest.shp
)
#--- CompareImages ---
OTB_TEST_APPLICATION
(
NAME apTvUtCompareImages
...
...
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