Skip to content
Snippets Groups Projects
Commit 9b987df1 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

TEST:add test with extract roi after rx to put expose residual problems

parent 24c79d02
Branches
Tags
No related merge requests found
......@@ -162,6 +162,7 @@ ADD_TEST(hyVCA_AVIRIS
SET( otbAnomalyTests1_SRC
LocalRxDetectorTest.cxx
LocalRxDetectorRoiTest.cxx
#LocalRxDetectorNonTrhreadedTest.cxx
#LocalRxDetectorRoiNonThreadedTest.cxx
)
......@@ -182,3 +183,14 @@ ADD_TEST(tvLocalRXDetector
7
1
)
ADD_TEST(tvLocalRXDetectorROI
${TESTEXE_DIR}/otbAnomalyTests1
LocalRXDetectorROITest
${DATA}/CupriteSubHsi/cupriteSubHsi.tif
${TEMP}/localRXROICupriteSubHsi.tif
7
1
60
60
)
......@@ -7,7 +7,7 @@
#include "otbExtractROI.h"
int main(int argc, char * argv[])
int LocalRXDetectorROITest(int argc, char * argv[])
{
typedef double PixelType;
typedef otb::VectorImage<PixelType, 2> VectorImageType;
......@@ -23,14 +23,13 @@ int main(int argc, char * argv[])
//--------------- Parameters ------------------//
const char * filename = argv[1];
const char * outputFilename = argv[2];
const int externalRadius = atoi(argv[3]);
const int internalRadius = atoi(argv[4]);
const char * filename = "cupriteSubHsi.tif";
const char * outputFilename = "roiTest.tif";
const int externalRadius = 7;
const int internalRadius = 1;
const int nbCol = atoi(argv[1]);
const int nbRow = atoi(argv[2]);
const int nbCol = atoi(argv[5]);
const int nbRow = atoi(argv[6]);
const int idxCol = 0;
const int idxRow = 0;
......
......@@ -25,4 +25,5 @@ void RegisterTests()
{
REGISTER_TEST(LocalRXDetectorNewTest);
REGISTER_TEST(LocalRXDetectorTest);
REGISTER_TEST(LocalRXDetectorROITest);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment