Commit 60dee84e authored by Guillaume Pasero's avatar Guillaume Pasero

TEST: speed up some long tests

parent 69083621
Pipeline #2108 passed with stages
in 52 minutes and 36 seconds
Data/Input/pointSet.png

128 Bytes | W: | H:

Data/Input/pointSet.png

128 Bytes | W: | H:

Data/Input/pointSet.png
Data/Input/pointSet.png
Data/Input/pointSet.png
Data/Input/pointSet.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -83,5 +83,5 @@ otb_add_test(NAME cdTeKullbackLeiblerProfileChDetTest COMMAND ${OTB_TEST_DRIVER}
${INPUTDATA}/GomaAvant.png
${INPUTDATA}/GomaApres.png
${TEMP}/KullbackLeiblerProfileChDetTest.png
5 51 1 12 24
5 30 1 6 12
)
......@@ -41,7 +41,7 @@ otb_module_target_label(otbDisparityMapTestDriver)
# Tests Declaration
otb_add_test(NAME dmTvDisparityMapEstimationMethod COMMAND otbDisparityMapTestDriver
--compare-ascii ${NOTOL}
--compare-ascii ${EPSILON_3}
${BASELINE_FILES}/dmDisparityMapEstimationOutput1.txt
${TEMP}/dmDisparityMapEstimationOutput1.txt
otbDisparityMapEstimationMethod
......@@ -49,7 +49,7 @@ otb_add_test(NAME dmTvDisparityMapEstimationMethod COMMAND otbDisparityMapTestDr
${INPUTDATA}/moving.png
${INPUTDATA}/pointSet.png
${TEMP}/dmDisparityMapEstimationOutput1.txt
20 20
10 10
)
#otb_add_test(NAME dmTvDisparityMapToDEMFilter COMMAND otbDisparityMapTestDriver
......
......@@ -69,8 +69,7 @@ int otbDisparityMapEstimationMethod(int itkNotUsed(argc), char* argv[])
typedef itk::MinimumMaximumImageCalculator<ImageType> MinMaxType;
MinMaxType::Pointer mm = MinMaxType::New();
mm->SetImage(pointSetReader->GetOutput());
mm->ComputeMinimum();
mm->ComputeMaximum();
mm->Compute();
std::cout << "min: " << (int) mm->GetMinimum() << " max: " << (int) mm->GetMaximum() << std::endl;
PointSetSourceType::Pointer pointSetSource = PointSetSourceType::New();
......@@ -96,7 +95,7 @@ int otbDisparityMapEstimationMethod(int itkNotUsed(argc), char* argv[])
// For gradient descent
optimizer->SetLearningRate(5.0);
optimizer->SetNumberOfIterations(600);
optimizer->SetNumberOfIterations(100);
DMEstimationType::ParametersType initialParameters(transform->GetNumberOfParameters());
initialParameters[0] = 0.0; // Initial offset in mm along X
initialParameters[1] = 0.0; // Initial offset in mm along Y
......
......@@ -70,12 +70,12 @@ otb_add_test(NAME bfTvConnectedComponentMuParserFunctorTestMask COMMAND otbCCOBI
otb_add_test(NAME obTuMeanShiftStreamingConnectedComponentSegmentationOBIAToVectorDataFilter COMMAND otbCCOBIATestDriver
otbMeanShiftStreamingConnectedComponentSegmentationOBIAToVectorDataFilter
${INPUTDATA}/ROI_QB_MUL_4.tif
${INPUTDATA}/QB_MUL_ROI_1000_100.tif
${TEMP}/obTuMeanShiftStreamingConnectedComponentSegmentationOBIAToVectorDataFilter.shp
9
10
0.001
"distance<10"
6
50
0.1
"distance<20"
20
"SHAPE_Elongation>10"
5)
......
......@@ -34,13 +34,13 @@ otb_module_target_label(otbMeanShiftTestDriver)
otb_add_test(NAME obTuMeanShiftConnectedComponentSegmentationFilter COMMAND otbMeanShiftTestDriver
otbMeanShiftConnectedComponentSegmentationFilter
${INPUTDATA}/ROI_QB_MUL_4.tif
${TEMP}/obTuMeanShiftConnectedComponentSegmentationImage.png
9
9
0.01
"distance<0.2"
50)
${INPUTDATA}/QB_MUL_ROI_1000_100.tif
${TEMP}/obTuMeanShiftConnectedComponentSegmentationImage.tif
6
50
0.1
"distance<20"
5)
otb_add_test(NAME obTuMeanShiftSegmentationFilterPruning COMMAND otbMeanShiftTestDriver
otbMeanShiftSegmentationFilter
......
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