Commit 924c4376 authored by Julien Michel's avatar Julien Michel

TEST: Fix tests depending on removed files rcc8_mire*

parent da4613ad
......@@ -20,7 +20,7 @@
/* Example usage:
./LabelMapToVectorData Input/rcc8_mire1.png Output/rcc8_mire2_vectorizer.shp
./LabelMapToVectorData Input/labelImage_UnsignedChar.tif Output/LabelMapToVectorData.shp
*/
......
......@@ -42,6 +42,6 @@ set(INPUTDATA ${OTB_DATA_ROOT}/Input)
otb_add_test(NAME trTeLabelMapToVectorData COMMAND ${OTB_TEST_DRIVER}
Execute $<TARGET_FILE:LabelMapToVectorData>
${INPUTDATA}/rcc8_mire1.png
${TEMP}/rcc8_mire2_vectorizer.shp
${INPUTDATA}/labelImage_UnsignedChar.tif
${TEMP}/trTeLabelMapToVectorDataOutput.shp
)
......@@ -41,8 +41,8 @@ otb_module_target_label(otbLabelMapTestDriver)
otb_add_test(NAME obTvLabelObjectMapVectorizer COMMAND otbLabelMapTestDriver
otbLabelObjectMapVectorizer
${INPUTDATA}/rcc8_mire1.png
rcc8_mire1_label_vectorizer.gml)
${INPUTDATA}/labelImage_UnsignedChar.tif
otbLabelObjectMapVectorizerOutput.gml)
otb_add_test(NAME obTvLabelImageToLabelMapWithAdjacencyFilter COMMAND otbLabelMapTestDriver
--compare-ascii ${NOTOL}
......@@ -64,13 +64,13 @@ otb_add_test(NAME obTvKMeansAttributesLabelMapFilter COMMAND otbLabelMapTestDriv
${TEMP}/obTvKMeansAttributesLabelMapFilter.txt)
otb_add_test(NAME obTvLabelMapToSampleListFilter COMMAND otbLabelMapTestDriver
otbLabelMapToSampleListFilter
${OTB_DATA_ROOT}/Input/rcc8_mire1.png
${OTB_DATA_ROOT}/Input/labelImage_UnsignedChar.tif
SHAPE::Flusser01 SHAPE::Flusser02 SHAPE::Flusser03 SHAPE::Flusser04
SHAPE::Flusser05 SHAPE::Flusser06 SHAPE::Flusser07 SHAPE::Flusser08
SHAPE::Flusser09 SHAPE::Flusser10 SHAPE::Flusser11)
otb_add_test(NAME obTvLabelMapWithClassLabelToLabeledSampleListFilter COMMAND otbLabelMapTestDriver
otbLabelMapWithClassLabelToLabeledSampleListFilter
${OTB_DATA_ROOT}/Input/rcc8_mire1.png
${OTB_DATA_ROOT}/Input/labelImage_UnsignedChar.tif
SHAPE::Flusser01 SHAPE::Flusser02 SHAPE::Flusser03 SHAPE::Flusser04
SHAPE::Flusser05 SHAPE::Flusser06 SHAPE::Flusser07 SHAPE::Flusser08
SHAPE::Flusser09 SHAPE::Flusser10 SHAPE::Flusser11)
......
......@@ -62,7 +62,7 @@ int otbLabelMapWithClassLabelToLabeledSampleListFilter(int argc, char* argv[])
LabelMapFilterType::Pointer labelMapFilter = LabelMapFilterType::New();
labelMapFilter->SetInput(lreader->GetOutput());
labelMapFilter->SetInputForegroundValue(255);
labelMapFilter->SetInputForegroundValue(1);
ShapeLabelMapFilterType::Pointer shapeLabelMapFilter = ShapeLabelMapFilterType::New();
shapeLabelMapFilter->SetInput(labelMapFilter->GetOutput());
......
......@@ -62,12 +62,12 @@ otb_add_test(NAME feTvImageToEdgePathFilterBis COMMAND otbPathTestDriver
otb_add_test(NAME feTvImageToEdgePathFilter COMMAND otbPathTestDriver
--compare-image ${EPSILON_8}
${BASELINE}/feImageToEdgePathFilter_rcc8_mire4.png
${TEMP}/feImageToEdgePathFilter_rcc8_mire4.png
${BASELINE}/feImageToEdgePathFilterOutput.tif
${TEMP}/feImageToEdgePathFilterOutput.tif
otbImageToEdgePathFilter
${INPUTDATA}/rcc8_mire4.png
${TEMP}/feImageToEdgePathFilter_rcc8_mire4.png
255
${INPUTDATA}/labelImage_UnsignedChar.tif
${TEMP}/feImageToEdgePathFilterOutput.tif
3
)
otb_add_test(NAME feTuCompacityPathCircle COMMAND otbPathTestDriver
......
......@@ -195,19 +195,11 @@ otb_add_test(NAME bfTvVectorDataRasterizeFilterSHP COMMAND otbConversionTestDriv
#4 25 0.1 100
#)
otb_add_test(NAME obTvLabelMapToVectorDataFilter2 COMMAND otbConversionTestDriver
--compare-ogr ${NOTOL}
${BASELINE_FILES}/obTvLabelMapToVectorDataFilter.shp
${TEMP}/obTvLabelMapToVectorDataFilter2.shp
otbLabelMapToVectorDataFilter
${INPUTDATA}/rcc8_mire5.png
${TEMP}/obTvLabelMapToVectorDataFilter2.shp)
otb_add_test(NAME obTvLabelMapToVectorDataFilter COMMAND otbConversionTestDriver
--compare-ogr ${NOTOL}
${BASELINE_FILES}/obTvLabelMapToVectorDataFilter.shp
${TEMP}/obTvLabelMapToVectorDataFilter.shp
otbLabelMapToVectorDataFilter
${INPUTDATA}/rcc8_mire1.png
${INPUTDATA}/labelImage_UnsignedChar.tif
${TEMP}/obTvLabelMapToVectorDataFilter.shp)
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