Commit 0a299656 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH: add test ref for ReadImageInfo app + add a seed to the vnl_random

parent 2dda5508
......@@ -251,7 +251,7 @@ private:
FloatType approxGroundSpacing = std::make_pair(itk::NumericTraits<ValueType>::Zero, itk::NumericTraits<ValueType>::min());
FloatVectorImageType::IndexType index;
vnl_random rand;
vnl_random rand(12345);
index[0] = static_cast<FloatVectorImageType::IndexType::IndexValueType>(rand.lrand32(0, inImage->GetLargestPossibleRegion().GetSize()[0]));
index[1] = static_cast<FloatVectorImageType::IndexType::IndexValueType>(rand.lrand32(0, inImage->GetLargestPossibleRegion().GetSize()[1]));
......
......@@ -23,21 +23,37 @@ OTB_TEST_APPLICATION(NAME apTvUtSmoothingTest
OTB_TEST_APPLICATION(NAME apTvUtReadImageInfoTest
APP ReadImageInfo
OPTIONS -in ${INPUTDATA}/poupees.tif)
OPTIONS -in ${INPUTDATA}/poupees.tif
TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoTest.txt
VALID --compare-ascii ${EPSILON_7}
${BASELINE_FILES}/apTvUtReadImageInfoTest.txt
${TEMP}/apTvUtReadImageInfoTest.txt)
IF(OTB_DATA_USE_LARGEINPUT)
OTB_TEST_APPLICATION(NAME apTvUtReadImageInfoSpot5
APP ReadImageInfo
OPTIONS -in ${LARGEDATA}/SPOT5/TEHERAN/IMAGERY.TIF)
OPTIONS -in ${LARGEDATA}/SPOT5/TEHERAN/IMAGERY.TIF
TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoSpot5.txt
VALID --compare-ascii ${EPSILON_7}
${BASELINE_FILES}/apTvUtReadImageInfoSpot5.txt
${TEMP}/apTvUtReadImageInfoSpot5.txt)
OTB_TEST_APPLICATION(NAME apTvUtReadImageInfoERS
APP ReadImageInfo
OPTIONS -in ${LARGEDATA}/SAR_ERS2_SLCI_SCENE1/DAT_01.001)
OPTIONS -in ${LARGEDATA}/SAR_ERS2_SLCI_SCENE1/DAT_01.001
TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoERS.txt
VALID --compare-ascii ${EPSILON_7}
${BASELINE_FILES}/apTvUtReadImageInfoERS.txt
${TEMP}/apTvUtReadImageInfoERS.txt)
OTB_TEST_APPLICATION(NAME apTvUtReadImageInfoRADARSAT1
APP ReadImageInfo
OPTIONS -in ${LARGEDATA}/RADARSAT1/GOMA/SCENE01/DAT_01.001)
OPTIONS -in ${LARGEDATA}/RADARSAT1/GOMA/SCENE01/DAT_01.001
TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoRADARSAT1.txt
VALID --compare-ascii ${EPSILON_7}
${BASELINE_FILES}/apTvUtReadImageInfoRADARSAT1.txt
${TEMP}/apTvUtReadImageInfoRADARSAT1.txt)
ENDIF(OTB_DATA_USE_LARGEINPUT)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment