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
5f1020ac
Commit
5f1020ac
authored
13 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add test for bandMath application
parent
e34ca25e
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
Applications/Util/otbBandMath.cxx
+1
-1
1 addition, 1 deletion
Applications/Util/otbBandMath.cxx
Testing/Applications/Util/CMakeLists.txt
+17
-2
17 additions, 2 deletions
Testing/Applications/Util/CMakeLists.txt
with
18 additions
and
3 deletions
Applications/Util/otbBandMath.cxx
+
1
−
1
View file @
5f1020ac
...
...
@@ -148,7 +148,7 @@ private:
// checking the input images list validity
const
unsigned
int
nbImages
=
inList
->
Size
();
if
(
nbImages
)
if
(
nbImages
==
0
)
{
itkExceptionMacro
(
"No input Image set...; please set at least one input image"
);
}
...
...
This diff is collapsed.
Click to expand it.
Testing/Applications/Util/CMakeLists.txt
+
17
−
2
View file @
5f1020ac
...
...
@@ -97,7 +97,7 @@ add_test(NAME apTvUtConcatenateImages_1Image
${
TEMP
}
/apTvUtConcatenateImages_1Image.tif
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
ConcatenateImages
$<TARGET_FILE_DIR:otbapp_
ExtractROI
>
$<TARGET_FILE_DIR:otbapp_
ConcatenateImages
>
--il
${
INPUTDATA
}
/poupees_c1
--out
${
TEMP
}
/apTvUtConcatenateImages_1Image.tif
)
...
...
@@ -107,6 +107,21 @@ add_test(NAME apTvUtConcatenateImages
${
TEMP
}
/apTvUtConcatenateImages.png
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
ConcatenateImages
$<TARGET_FILE_DIR:otbapp_
ExtractROI
>
$<TARGET_FILE_DIR:otbapp_
ConcatenateImages
>
--il
${
INPUTDATA
}
/poupees_sub_c1.png
${
INPUTDATA
}
/poupees_sub_c2.png
${
INPUTDATA
}
/poupees_sub_c3.png
--out
${
TEMP
}
/apTvUtConcatenateImages.png uchar
)
#--- BandMath application -----
add_test
(
NAME apTvUtBandMath
COMMAND otbTestDriver --compare-image
${
NOTOL
}
${
INPUTDATA
}
/apTvUtBandMathOutput.tif
${
TEMP
}
/apTvUtBandMathOutput.tif
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
BandMath
$<TARGET_FILE_DIR:otbapp_BandMath>
--il
${
INPUTDATA
}
/poupees_sub_c1.png
${
INPUTDATA
}
/poupees_sub_c2.png
${
INPUTDATA
}
/poupees_sub.png
--out
${
TEMP
}
/apTvUtBandMathOutput.tif
--exp
"cos(im1b1)+im2b1*im3b1-im3b2+ndvi(im3b3,im3b4)"
)
\ No newline at end of file
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