Skip to content
Snippets Groups Projects
Commit 3c12421a authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ADD: added tests for ConnectedComponentSegmentation application

parent 3599be40
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ endforeach(app)
add_subdirectory(ChangeDetection)
add_subdirectory(Classification)
add_subdirectory(ConnectedComponentSegmentation)
add_subdirectory(DimensionnalityReduction)
add_subdirectory(DisparityMap)
add_subdirectory(FeatureExtraction)
......
#--- ConnectedComponentSegmentation ---#
OTB_TEST_APPLICATION(NAME apTvCcConnectedComponentSegmentationMaskMuParserShp
APP ConnectedComponentSegmentation
OPTIONS --in ${INPUTDATA}/ROI_QB_MUL_4.tif
--out ${TEMP}/apTvCcConnectedComponentSegmentationMaskMuParser.shp
--mask "((b1>80)*intensity>95)"
--expr "distance<10"
--minsize 15
--obia "SHAPE_Elongation>8"
VALID --compare-ogr ${NOTOL}
${BASELINE_FILES}/apTvCcConnectedComponentSegmentationMaskMuParser.shp
${TEMP}/apTvCcConnectedComponentSegmentationMaskMuParser.shp)
OTB_TEST_APPLICATION(NAME apTvCcConnectedComponentSegmentatioNoMask
APP ConnectedComponentSegmentation
OPTIONS --in ${INPUTDATA}/ROI_QB_MUL_4.tif
--out ${TEMP}/apTvCcConnectedComponentSegmentationNoMask.shp
--expr "distance<10"
--minsize 15
--obia "SHAPE_Elongation>8"
VALID --compare-ogr ${NOTOL}
${BASELINE_FILES}/apTvCcConnectedComponentSegmentationNoMask.shp
${TEMP}/apTvCcConnectedComponentSegmentationNoMask.shp)
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