Commit 5b52313c authored by Manuel Grizonnet's avatar Manuel Grizonnet

DOC:obia

parent bbda3c52
......@@ -48,6 +48,21 @@ ADD_TEST(trTeOBIAShapeAttributeComputationTest ${EXE_TESTS}
${INPUTDATA}/MSLabeledOutput.tif
${TEMP}/OBIAShapeAttribute.txt
)
ADD_TEST(trTeOBIARadiometricAttributesLabelMapFilterTest ${EXE_TESTS}
--compare-image ${TOL} ${BASELINE}/OBIARadiometricAttributes.tif
${TEMP}/OBIARadiometricAttributes.tif
OBIARadiometricAttributesTest
${INPUTDATA}/qb_RoadExtract2.tif
${TEMP}/OBIARadiometricAttributes.txt
STATS::Ndvi::Mean
0.5
0
5
5
10
1.0
)
#need to add the test of radiometric labelmap filter
......
......@@ -27,6 +27,7 @@ void RegisterTests()
{
REGISTER_TEST(OBIAImageToLabelToImageTest);
REGISTER_TEST(OBIAShapeAttributeComputationTest);
REGISTER_TEST(OBIARadiometricAttributesTest);
}
#undef main
......@@ -36,3 +37,7 @@ void RegisterTests()
#undef main
#define main OBIAShapeAttributeComputationTest
#include "ShapeAttributeComputation.cxx"
#undef main
#define main OBIARadiometricAttributesTest
#include "otbRadiometricAttributesLabelMapFilterExample.cxx"
......@@ -147,9 +147,9 @@ int main(int argc, char * argv[])
RadiometricLabelMapFilterType::Pointer radiometricLabelMapFilter = RadiometricLabelMapFilterType::New();
radiometricLabelMapFilter->SetInput1(statisticsLabelMapFilter->GetOutput());
radiometricLabelMapFilter->SetInput2(vreader->GetOutput());
//radiometricLabelMapFilter->SetReducedAttributeSet(false);
radiometricLabelMapFilter->SetRedChannelIndex(1);
radiometricLabelMapFilter->SetNIRChannelIndex(2);
radiometricLabelMapFilter->SetRedChannelIndex(2);
radiometricLabelMapFilter->SetNIRChannelIndex(3);
radiometricLabelMapFilter->Update();
OpeningLabelMapFilterType::Pointer opening = OpeningLabelMapFilterType::New();
......
......@@ -20,11 +20,11 @@
#include "otbVectorDataFileWriter.h"
#include "otbVectorData.h"
#include "otbVectorDataProjectionFilter.h"
//#include "otbVectorDataExtractROI.h"
#include <fstream>
#include <iostream>
//#include "itkRGBAPixel.h"
#include "otbImage.h"
#include "otbLabelMapToVectorDataFilter.h"
#include "otbAttributesMapLabelObject.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