Commit ab6fccf0 authored by Manuel Grizonnet's avatar Manuel Grizonnet

DOC:labelmaptovectordata

parent 1acca180
......@@ -13,6 +13,9 @@ TARGET_LINK_LIBRARIES(KeepNObjects OTBCommon OTBIO ${OTB_IO_UTILITIES_DEPENDENT_
ADD_EXECUTABLE(RadiometricAttributesLabelMapFilterExample otbRadiometricAttributesLabelMapFilterExample.cxx )
TARGET_LINK_LIBRARIES(RadiometricAttributesLabelMapFilterExample OTBCommon OTBIO OTBBasicFilters OTBSpatialReasoning OTBFeatureExtraction OTBLearning ${OTB_IO_UTILITIES_DEPENDENT_LIBRARIES})
ADD_EXECUTABLE(LabelMapToVectorData LabelMapToVectorData.cxx )
TARGET_LINK_LIBRARIES(LabelMapToVectorData OTBCommon OTBIO OTBBasicFilters ${OTB_IO_UTILITIES_DEPENDENT_LIBRARIES})
IF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )
SET(BASELINE ${OTB_DATA_ROOT}/Baseline/Examples/OBIA)
......@@ -64,6 +67,11 @@ ADD_TEST(trTeOBIARadiometricAttributesLabelMapFilterTest ${EXE_TESTS}
1.0
)
ADD_TEST(trTeLabelMapToVectorData ${EXE_TESTS}
LabelMapToVectorDataTest
${INPUTDATA}/rcc8_mire1.png
${TEMP}/rcc8_mire2_vectorizer.shp
)
#need to add the test of radiometric labelmap filter
INCLUDE_DIRECTORIES(${OTB_SOURCE_DIR}/Testing/Code)
......
......@@ -28,6 +28,7 @@ void RegisterTests()
REGISTER_TEST(OBIAImageToLabelToImageTest);
REGISTER_TEST(OBIAShapeAttributeComputationTest);
REGISTER_TEST(OBIARadiometricAttributesTest);
REGISTER_TEST(LabelMapToVectorDataTest);
}
#undef main
......@@ -41,3 +42,7 @@ void RegisterTests()
#undef main
#define main OBIARadiometricAttributesTest
#include "otbRadiometricAttributesLabelMapFilterExample.cxx"
#undef main
#define main LabelMapToVectorDataTest
#include "LabelMapToVectorData.cxx"
......@@ -16,6 +16,7 @@
=========================================================================*/
#include "otbImageFileReader.h"
#include "otbVectorDataFileWriter.h"
#include "otbVectorData.h"
......
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