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

TEST: speed up some long tests

parent 69083621
Pipeline #2108 passed with stages
in 52 minutes and 36 seconds
Point [25.000000, 28.000000] -> transform parameters: [-1, 1, 2, 0.9999999999999982, 1.999999999999999]
Point [33.000000, 28.000000] -> transform parameters: [-1, 1, 2, 0.9999999999999982, 1.999999999999999]
Point [29.000000, 32.000000] -> transform parameters: [-1, 1, 2, 0.9999999999999982, 1.999999999999999]
Point [195.000000, 34.000000] -> transform parameters: [-1, -2, 1, -1.99999999999999, 0.9999999999999986]
Point [203.000000, 34.000000] -> transform parameters: [-1, -2, 1, -1.99999999999999, 0.9999999999999986]
Point [25.000000, 36.000000] -> transform parameters: [-1, 1, 2, 0.9999999999999982, 1.999999999999999]
Point [33.000000, 36.000000] -> transform parameters: [-1, 1, 2, 0.9999999999999982, 1.999999999999999]
Point [105.000000, 38.000000] -> transform parameters: [-0.4326462096884831, -0.8237850307980636, -2.1762149692019364, -0.8237850307980573, -2.17621496920194]
Point [113.000000, 38.000000] -> transform parameters: [-0.4326462096884831, -0.8237850307980636, -2.1762149692019364, -0.8237850307980573, -2.17621496920194]
Point [199.000000, 38.000000] -> transform parameters: [-1, -2, 1, -1.99999999999999, 0.9999999999999986]
Point [109.000000, 42.000000] -> transform parameters: [-0.4326462096884831, -0.8237850307980636, -2.1762149692019364, -0.8237850307980573, -2.17621496920194]
Point [195.000000, 42.000000] -> transform parameters: [-1, -2, 1, -1.99999999999999, 0.9999999999999986]
Point [203.000000, 42.000000] -> transform parameters: [-1, -2, 1, -1.99999999999999, 0.9999999999999986]
Point [105.000000, 46.000000] -> transform parameters: [-0.4326462096884831, -0.8237850307980636, -2.1762149692019364, -0.8237850307980573, -2.17621496920194]
Point [113.000000, 46.000000] -> transform parameters: [-0.4326462096884831, -0.8237850307980636, -2.1762149692019364, -0.8237850307980573, -2.17621496920194]
Point [182.000000, 82.000000] -> transform parameters: [-0.43264620968848305, 2.1762149692019364, -0.8237850307980636, 2.1762149692019426, -0.8237850307980593]
Point [190.000000, 82.000000] -> transform parameters: [-0.43264620968848305, 2.1762149692019364, -0.8237850307980636, 2.1762149692019426, -0.8237850307980593]
Point [186.000000, 86.000000] -> transform parameters: [-0.43264620968848305, 2.1762149692019364, -0.8237850307980636, 2.1762149692019426, -0.8237850307980593]
Point [182.000000, 90.000000] -> transform parameters: [-0.43264620968848305, 2.1762149692019364, -0.8237850307980636, 2.1762149692019426, -0.8237850307980593]
Point [190.000000, 90.000000] -> transform parameters: [-0.43264620968848305, 2.1762149692019364, -0.8237850307980636, 2.1762149692019426, -0.8237850307980593]
Point [118.000000, 94.000000] -> transform parameters: [-0.06895526364944375, 0.0041981524022816075, 0.01659005014019499, 0.004198152402284198, 0.016590050140193883]
Point [126.000000, 94.000000] -> transform parameters: [-0.06895526364944375, 0.0041981524022816075, 0.01659005014019499, 0.004198152402284198, 0.016590050140193883]
Point [62.000000, 98.000000] -> transform parameters: [-1, -3, 0, -2.999999999999998, -2.997447705593446e-17]
Point [70.000000, 98.000000] -> transform parameters: [-1, -3, 0, -2.999999999999998, -2.997447705593446e-17]
Point [122.000000, 98.000000] -> transform parameters: [-0.06895526364944375, 0.0041981524022816075, 0.01659005014019499, 0.004198152402284198, 0.016590050140193883]
Point [66.000000, 102.000000] -> transform parameters: [-1, -3, 0, -2.999999999999998, -2.997447705593446e-17]
Point [118.000000, 102.000000] -> transform parameters: [-0.06895526364944375, 0.0041981524022816075, 0.01659005014019499, 0.004198152402284198, 0.016590050140193883]
Point [126.000000, 102.000000] -> transform parameters: [-0.06895526364944375, 0.0041981524022816075, 0.01659005014019499, 0.004198152402284198, 0.016590050140193883]
Point [62.000000, 106.000000] -> transform parameters: [-1, -3, 0, -2.999999999999998, -2.997447705593446e-17]
Point [70.000000, 106.000000] -> transform parameters: [-1, -3, 0, -2.999999999999998, -2.997447705593446e-17]
Point [21.000000, 127.000000] -> transform parameters: [-0.4094814161469302, -0.09996668018703403, 0.09996668018702337, -0.09996668018703297, 0.09996668018703014]
Point [29.000000, 127.000000] -> transform parameters: [-0.4094814161469302, -0.09996668018703403, 0.09996668018702337, -0.09996668018703297, 0.09996668018703014]
Point [25.000000, 131.000000] -> transform parameters: [-0.4094814161469302, -0.09996668018703403, 0.09996668018703758, -0.09996668018703297, 0.09996668018703014]
Point [175.000000, 131.000000] -> transform parameters: [-1, 2, 0, 1.9999999999999871, 2.0182200400791482e-17]
Point [183.000000, 131.000000] -> transform parameters: [-1, 2, 0, 1.9999999999999871, 2.0182200400791482e-17]
Point [21.000000, 135.000000] -> transform parameters: [-0.4094814161469302, -0.09996668018703403, 0.09996668018703758, -0.09996668018703297, 0.09996668018703014]
Point [29.000000, 135.000000] -> transform parameters: [-0.4094814161469302, -0.09996668018703403, 0.09996668018703758, -0.09996668018703297, 0.09996668018703014]
Point [109.000000, 42.000000] -> transform parameters: [-0.452124907113126, -0.8283223404045827, -2.0723224585710938, -0.8283223404045758, -2.072322458571092]
Point [186.000000, 86.000000] -> transform parameters: [-0.4521249071131251, 2.0723224585710796, -0.8283223404045685, 2.0723224585710915, -0.8283223404045712]
Point [122.000000, 98.000000] -> transform parameters: [-0.07914484780444003, 0.004023414455602392, 0.1883684912752983, 0.0040234144556013235, 0.18836849127529462]
Point [66.000000, 102.000000] -> transform parameters: [-1, -3, 0, -2.9999999999999964, 5.3833972119105215e-17]
Point [25.000000, 131.000000] -> transform parameters: [-0.4126585211258881, 0.05046050479198172, -0.05046050479197106, 0.050460504791982844, -0.050460504791982816]
Point [179.000000, 135.000000] -> transform parameters: [-1, 2, 0, 1.9999999999999871, 2.0182200400791482e-17]
Point [175.000000, 139.000000] -> transform parameters: [-1, 2, 0, 1.9999999999999871, 2.0182200400791482e-17]
Point [183.000000, 139.000000] -> transform parameters: [-1, 2, 0, 1.9999999999999871, 2.0182200400791482e-17]
Point [110.000000, 154.000000] -> transform parameters: [-1, -2, 1, -1.9999999999999931, 0.9999999999999927]
Point [118.000000, 154.000000] -> transform parameters: [-1, -2, 1, -1.9999999999999931, 0.9999999999999927]
Point [114.000000, 158.000000] -> transform parameters: [-1, -2, 1, -1.9999999999999931, 0.9999999999999927]
Point [110.000000, 162.000000] -> transform parameters: [-1, -2, 1, -1.9999999999999931, 0.9999999999999927]
Point [118.000000, 162.000000] -> transform parameters: [-1, -2, 1, -1.9999999999999931, 0.9999999999999927]
Point [39.000000, 171.000000] -> transform parameters: [-0.4326462096884826, 2.1762149692019435, 0.8237850307980636, 2.1762149692019412, 0.8237850307980553]
Point [45.000000, 171.000000] -> transform parameters: [-0.4326462096884826, 2.1762149692019435, 0.8237850307980636, 2.1762149692019412, 0.8237850307980553]
Point [42.000000, 174.000000] -> transform parameters: [-0.4326462096884826, 2.1762149692019435, 0.8237850307980636, 2.1762149692019412, 0.8237850307980553]
Point [38.000000, 178.000000] -> transform parameters: [-0.4326462096884826, 2.1762149692019435, 0.8237850307980636, 2.1762149692019412, 0.8237850307980553]
Point [46.000000, 178.000000] -> transform parameters: [-0.4326462096884826, 2.1762149692019435, 0.8237850307980636, 2.1762149692019412, 0.8237850307980553]
Point [191.000000, 193.000000] -> transform parameters: [-0.40948141614693134, -2.099966680187009, -1.9000333198129624, -2.0999666801870225, -1.9000333198129742]
Point [199.000000, 193.000000] -> transform parameters: [-0.40948141614693134, -2.099966680187009, -1.9000333198129624, -2.0999666801870225, -1.9000333198129742]
Point [195.000000, 197.000000] -> transform parameters: [-0.40948141614693134, -2.099966680187009, -1.9000333198129624, -2.0999666801870225, -1.9000333198129742]
Point [191.000000, 201.000000] -> transform parameters: [-0.40948141614693134, -2.099966680187009, -1.9000333198129624, -2.0999666801870225, -1.9000333198129742]
Point [199.000000, 201.000000] -> transform parameters: [-0.40948141614693134, -2.099966680187009, -1.9000333198129624, -2.0999666801870225, -1.9000333198129742]
Point [74.000000, 214.000000] -> transform parameters: [-0.3243961363713258, -0.3581175553554914, -0.49646256945948153, -0.358117555355491, -0.4964625694594842]
Point [82.000000, 214.000000] -> transform parameters: [-0.3243961363713258, -0.3581175553554914, -0.49646256945948153, -0.358117555355491, -0.4964625694594842]
Point [78.000000, 218.000000] -> transform parameters: [-0.3243961363713258, -0.3581175553554914, -0.49646256945948153, -0.358117555355491, -0.4964625694594842]
Point [74.000000, 222.000000] -> transform parameters: [-0.3243961363713258, -0.3581175553554914, -0.49646256945948153, -0.358117555355491, -0.4964625694594842]
Point [82.000000, 222.000000] -> transform parameters: [-0.3243961363713258, -0.3581175553554914, -0.49646256945948153, -0.358117555355491, -0.4964625694594842]
Point [139.000000, 227.000000] -> transform parameters: [-0.43264620968848305, 2.1762149692019364, -0.8237850307980636, 2.1762149692019417, -0.8237850307980512]
Point [147.000000, 227.000000] -> transform parameters: [-0.43264620968848305, 2.1762149692019364, -0.8237850307980636, 2.1762149692019417, -0.8237850307980512]
Point [143.000000, 231.000000] -> transform parameters: [-0.43264620968848305, 2.1762149692019364, -0.8237850307980636, 2.1762149692019417, -0.8237850307980512]
Point [139.000000, 235.000000] -> transform parameters: [-0.43264620968848305, 2.1762149692019364, -0.8237850307980636, 2.1762149692019417, -0.8237850307980512]
Point [147.000000, 235.000000] -> transform parameters: [-0.43264620968848305, 2.1762149692019364, -0.8237850307980636, 2.1762149692019417, -0.8237850307980512]
Point [42.000000, 174.000000] -> transform parameters: [-0.45212490711312603, 2.0723224585710938, 0.8283223404045827, 2.0723224585710924, 0.8283223404045742]
Point [195.000000, 197.000000] -> transform parameters: [-0.05964744901725145, -0.3946432423196029, -0.455084544098014, -0.39464324231959125, -0.45508454409802646]
Point [78.000000, 218.000000] -> transform parameters: [-0.30451124953005193, -0.3869494822710493, -0.37966725310383254, -0.3869494822710459, -0.37966725310382177]
Point [143.000000, 231.000000] -> transform parameters: [-0.45212490711312164, 2.072322458571108, -0.8283223404045543, 2.0723224585710946, -0.8283223404045682]
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