Skip to content
Snippets Groups Projects
Commit 5f1020ac authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: add test for bandMath application

parent e34ca25e
No related branches found
No related tags found
No related merge requests found
......@@ -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");
}
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment