#include "../Config.h"#include <terralib/rp.h>#include <terralib/raster.h>#include <terralib/common.h>#include <terralib/dataaccess.h>#include <cmath>#include <boost/test/unit_test.hpp>#include <boost/shared_ptr.hpp>Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_NO_MAIN |
Functions | |
| BOOST_AUTO_TEST_CASE (blockProcessingWithoutMerging_test) | |
| BOOST_AUTO_TEST_CASE (blockProcessingWithMerging_test) | |
| BOOST_AUTO_TEST_CASE (threadedProcessing_test) | |
| BOOST_AUTO_TEST_CASE (regionGrowingMeanStrategy_test) | |
| BOOST_AUTO_TEST_CASE (regionGrowingMeanStrategyBlockProcessing_test) | |
| BOOST_AUTO_TEST_CASE (regionGrowingBaatzStrategy_test) | |
| BOOST_AUTO_TEST_CASE (regionGrowingBaatzStrategyBlockProcessing_test) | |
| BOOST_AUTO_TEST_SUITE (segmenter_tests) BOOST_AUTO_TEST_CASE(dummyStrategy_test) | |
| #define BOOST_TEST_NO_MAIN |
Definition at line 37 of file TsSegmenter.cpp.
| BOOST_AUTO_TEST_CASE | ( | blockProcessingWithoutMerging_test | ) |
Definition at line 95 of file TsSegmenter.cpp.
References te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), te::rp::Segmenter::InputParameters::m_blocksOverlapPercent, te::rp::Segmenter::InputParameters::m_enableBlockProcessing, te::rp::Segmenter::InputParameters::m_enableProgress, te::rp::Segmenter::InputParameters::m_enableThreadedProcessing, te::rp::Segmenter::InputParameters::m_inputRasterBands, te::rp::Segmenter::InputParameters::m_inputRasterPtr, te::rp::Segmenter::InputParameters::m_maxBlockSize, te::rp::Segmenter::InputParameters::m_maxSegThreads, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_minSegmentSize, te::rp::Segmenter::OutputParameters::m_rInfo, te::rp::Segmenter::OutputParameters::m_rType, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_segmentsSimilarityThreshold, te::rp::Segmenter::InputParameters::m_strategyName, te::rst::RasterFactory::open(), and te::rp::Segmenter::InputParameters::setSegStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | blockProcessingWithMerging_test | ) |
Definition at line 147 of file TsSegmenter.cpp.
References te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), te::rp::Segmenter::InputParameters::m_blocksOverlapPercent, te::rp::Segmenter::InputParameters::m_enableBlockProcessing, te::rp::Segmenter::InputParameters::m_enableProgress, te::rp::Segmenter::InputParameters::m_enableThreadedProcessing, te::rp::Segmenter::InputParameters::m_inputRasterBands, te::rp::Segmenter::InputParameters::m_inputRasterPtr, te::rp::Segmenter::InputParameters::m_maxBlockSize, te::rp::Segmenter::InputParameters::m_maxSegThreads, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_minSegmentSize, te::rp::Segmenter::OutputParameters::m_rInfo, te::rp::Segmenter::OutputParameters::m_rType, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_segmentsSimilarityThreshold, te::rp::Segmenter::InputParameters::m_strategyName, te::rst::RasterFactory::open(), and te::rp::Segmenter::InputParameters::setSegStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | threadedProcessing_test | ) |
Definition at line 199 of file TsSegmenter.cpp.
References te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), te::rp::Segmenter::InputParameters::m_blocksOverlapPercent, te::rp::Segmenter::InputParameters::m_enableBlockProcessing, te::rp::Segmenter::InputParameters::m_enableProgress, te::rp::Segmenter::InputParameters::m_enableThreadedProcessing, te::rp::Segmenter::InputParameters::m_inputRasterBands, te::rp::Segmenter::InputParameters::m_inputRasterPtr, te::rp::Segmenter::InputParameters::m_maxBlockSize, te::rp::Segmenter::InputParameters::m_maxSegThreads, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_minSegmentSize, te::rp::Segmenter::OutputParameters::m_rInfo, te::rp::Segmenter::OutputParameters::m_rType, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_segmentsSimilarityThreshold, te::rp::Segmenter::InputParameters::m_strategyName, te::rst::RasterFactory::open(), and te::rp::Segmenter::InputParameters::setSegStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | regionGrowingMeanStrategy_test | ) |
Definition at line 251 of file TsSegmenter.cpp.
References te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), te::rp::Segmenter::InputParameters::m_blocksOverlapPercent, te::rp::Segmenter::InputParameters::m_enableBlockProcessing, te::rp::Segmenter::InputParameters::m_enableProgress, te::rp::Segmenter::InputParameters::m_enableThreadedProcessing, te::rp::Segmenter::InputParameters::m_inputRasterBands, te::rp::Segmenter::InputParameters::m_inputRasterPtr, te::rp::Segmenter::InputParameters::m_maxBlockSize, te::rp::Segmenter::InputParameters::m_maxSegThreads, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_minSegmentSize, te::rp::Segmenter::OutputParameters::m_rInfo, te::rp::Segmenter::OutputParameters::m_rType, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_segmentsSimilarityThreshold, te::rp::Segmenter::InputParameters::m_strategyName, te::rst::RasterFactory::open(), and te::rp::Segmenter::InputParameters::setSegStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | regionGrowingMeanStrategyBlockProcessing_test | ) |
Definition at line 303 of file TsSegmenter.cpp.
References te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), te::rp::Segmenter::InputParameters::m_blocksOverlapPercent, te::rp::Segmenter::InputParameters::m_enableBlockProcessing, te::rp::Segmenter::InputParameters::m_enableProgress, te::rp::Segmenter::InputParameters::m_enableThreadedProcessing, te::rp::Segmenter::InputParameters::m_inputRasterBands, te::rp::Segmenter::InputParameters::m_inputRasterPtr, te::rp::Segmenter::InputParameters::m_maxBlockSize, te::rp::Segmenter::InputParameters::m_maxSegThreads, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_minSegmentSize, te::rp::Segmenter::OutputParameters::m_rInfo, te::rp::Segmenter::OutputParameters::m_rType, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_segmentsSimilarityThreshold, te::rp::Segmenter::InputParameters::m_strategyName, te::rst::RasterFactory::open(), and te::rp::Segmenter::InputParameters::setSegStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | regionGrowingBaatzStrategy_test | ) |
Definition at line 355 of file TsSegmenter.cpp.
References te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_bandsWeights, te::rp::Segmenter::InputParameters::m_blocksOverlapPercent, te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_colorWeight, te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_compactnessWeight, te::rp::Segmenter::InputParameters::m_enableBlockProcessing, te::rp::Segmenter::InputParameters::m_enableProgress, te::rp::Segmenter::InputParameters::m_enableThreadedProcessing, te::rp::Segmenter::InputParameters::m_inputRasterBands, te::rp::Segmenter::InputParameters::m_inputRasterPtr, te::rp::Segmenter::InputParameters::m_maxBlockSize, te::rp::Segmenter::InputParameters::m_maxSegThreads, te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_minSegmentSize, te::rp::Segmenter::OutputParameters::m_rInfo, te::rp::Segmenter::OutputParameters::m_rType, te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_segmentsSimilarityThreshold, te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_segmentsSimIncreaseSteps, te::rp::Segmenter::InputParameters::m_strategyName, te::rst::RasterFactory::open(), and te::rp::Segmenter::InputParameters::setSegStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | regionGrowingBaatzStrategyBlockProcessing_test | ) |
Definition at line 413 of file TsSegmenter.cpp.
References te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_bandsWeights, te::rp::Segmenter::InputParameters::m_blocksOverlapPercent, te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_colorWeight, te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_compactnessWeight, te::rp::Segmenter::InputParameters::m_enableBlockProcessing, te::rp::Segmenter::InputParameters::m_enableProgress, te::rp::Segmenter::InputParameters::m_enableThreadedProcessing, te::rp::Segmenter::InputParameters::m_inputRasterBands, te::rp::Segmenter::InputParameters::m_inputRasterPtr, te::rp::Segmenter::InputParameters::m_maxBlockSize, te::rp::Segmenter::InputParameters::m_maxSegThreads, te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_minSegmentSize, te::rp::Segmenter::OutputParameters::m_rInfo, te::rp::Segmenter::OutputParameters::m_rType, te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_segmentsSimilarityThreshold, te::rp::SegmenterRegionGrowingBaatzStrategy::Parameters::m_segmentsSimIncreaseSteps, te::rp::Segmenter::InputParameters::m_strategyName, te::rst::RasterFactory::open(), and te::rp::Segmenter::InputParameters::setSegStrategyParams().
| BOOST_AUTO_TEST_SUITE | ( | segmenter_tests | ) |
Definition at line 41 of file TsSegmenter.cpp.
References te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), te::rp::Segmenter::InputParameters::m_blocksOverlapPercent, te::rp::Segmenter::InputParameters::m_enableBlockProcessing, te::rp::Segmenter::InputParameters::m_enableProgress, te::rp::Segmenter::InputParameters::m_enableThreadedProcessing, te::rp::Segmenter::InputParameters::m_inputRasterBands, te::rp::Segmenter::InputParameters::m_inputRasterPtr, te::rp::Segmenter::InputParameters::m_maxBlockSize, te::rp::Segmenter::InputParameters::m_maxSegThreads, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_minSegmentSize, te::rp::Segmenter::OutputParameters::m_rInfo, te::rp::Segmenter::OutputParameters::m_rType, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_segmentsSimilarityThreshold, te::rp::Segmenter::InputParameters::m_strategyName, te::rst::RasterFactory::open(), and te::rp::Segmenter::InputParameters::setSegStrategyParams().