#include "../Config.h"#include <terralib/dataaccess.h>#include <terralib/rp.h>#include <terralib/geometry.h>#include <terralib/raster.h>#include <terralib/memory.h>#include <terralib/common.h>#include <boost/test/unit_test.hpp>#include <boost/timer.hpp>Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_NO_MAIN |
Functions | |
| BOOST_AUTO_TEST_CASE (ISOSeg_single_thread_test) | |
| BOOST_AUTO_TEST_CASE (ISOSeg_multi_thread_test) | |
| BOOST_AUTO_TEST_CASE (MAP_test) | |
| BOOST_AUTO_TEST_CASE (ED_test) | |
| BOOST_AUTO_TEST_CASE (EM_test) | |
| BOOST_AUTO_TEST_CASE (SAM_test) | |
| BOOST_AUTO_TEST_CASE (KMeans_test) | |
| BOOST_AUTO_TEST_SUITE (classifier_tests) void SegmentImage(te | |
| void | saveToShp (std::vector< te::gm::Polygon * > polygons, std::vector< double > &polygonsValues, const std::string &shpBaseFileName) |
| #define BOOST_TEST_NO_MAIN |
Definition at line 36 of file TsClassifier.cpp.
| BOOST_AUTO_TEST_CASE | ( | ISOSeg_single_thread_test | ) |
Definition at line 133 of file TsClassifier.cpp.
References te::rp::ClassifierISOSegStrategy::Parameters::BhattacharyyaDistanceType, te::rp::Classifier::execute(), te::rp::Classifier::initialize(), te::rp::ClassifierISOSegStrategy::Parameters::m_acceptanceThreshold, te::rp::Classifier::InputParameters::m_createRasterPalette, te::rp::ClassifierISOSegStrategy::Parameters::m_distanceType, te::rp::Classifier::InputParameters::m_enableMultiThread, te::rp::Classifier::InputParameters::m_enableProgressInterface, te::rp::Classifier::InputParameters::m_inputPolygons, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::Classifier::InputParameters::m_inputRasterPtr, te::rp::Classifier::OutputParameters::m_rInfo, te::rp::Classifier::OutputParameters::m_rType, te::rp::Classifier::InputParameters::m_strategyName, te::rp::ClassifierISOSegStrategy::Parameters::MahalanobisDistanceType, te::rst::RasterFactory::open(), saveToShp(), SegmentImage(), and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | ISOSeg_multi_thread_test | ) |
Definition at line 227 of file TsClassifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), te::rp::ClassifierISOSegStrategy::Parameters::m_acceptanceThreshold, te::rp::Classifier::InputParameters::m_createRasterPalette, te::rp::ClassifierISOSegStrategy::Parameters::m_distanceType, te::rp::Classifier::InputParameters::m_enableMultiThread, te::rp::Classifier::InputParameters::m_enableProgressInterface, te::rp::Classifier::InputParameters::m_inputPolygons, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::Classifier::InputParameters::m_inputRasterPtr, te::rp::Classifier::OutputParameters::m_rInfo, te::rp::Classifier::OutputParameters::m_rType, te::rp::Classifier::InputParameters::m_strategyName, te::rp::ClassifierISOSegStrategy::Parameters::MahalanobisDistanceType, te::rst::RasterFactory::open(), saveToShp(), SegmentImage(), and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | MAP_test | ) |
Definition at line 297 of file TsClassifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), te::rp::Classifier::InputParameters::m_createRasterPalette, te::rp::Classifier::InputParameters::m_enableMultiThread, te::rp::Classifier::InputParameters::m_enableProgressInterface, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::Classifier::InputParameters::m_inputRasterPtr, te::rp::Classifier::OutputParameters::m_rInfo, te::rp::Classifier::OutputParameters::m_rType, te::rp::Classifier::InputParameters::m_strategyName, te::rp::ClassifierMAPStrategy::Parameters::m_trainSamplesPtr, te::rst::RasterFactory::open(), and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | ED_test | ) |
Definition at line 410 of file TsClassifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), te::rp::Classifier::InputParameters::m_createRasterPalette, te::rp::Classifier::InputParameters::m_enableMultiThread, te::rp::Classifier::InputParameters::m_enableProgressInterface, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::Classifier::InputParameters::m_inputRasterPtr, te::rp::Classifier::OutputParameters::m_rInfo, te::rp::Classifier::OutputParameters::m_rType, te::rp::Classifier::InputParameters::m_strategyName, te::rp::ClassifierEDStrategy::Parameters::m_trainSamplesPtr, te::rst::RasterFactory::open(), and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | EM_test | ) |
Definition at line 511 of file TsClassifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), te::rp::ClassifierEMStrategy::Parameters::m_clustersMeans, te::rp::Classifier::InputParameters::m_createRasterPalette, te::rp::Classifier::InputParameters::m_enableMultiThread, te::rp::Classifier::InputParameters::m_enableProgressInterface, te::rp::ClassifierEMStrategy::Parameters::m_epsilon, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::Classifier::InputParameters::m_inputRasterPtr, te::rp::ClassifierEMStrategy::Parameters::m_maxInputPoints, te::rp::ClassifierEMStrategy::Parameters::m_maxIterations, te::rp::ClassifierEMStrategy::Parameters::m_numberOfClusters, te::rp::Classifier::OutputParameters::m_rInfo, te::rp::Classifier::OutputParameters::m_rType, te::rp::Classifier::InputParameters::m_strategyName, te::rst::RasterFactory::open(), and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | SAM_test | ) |
Definition at line 570 of file TsClassifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), te::rp::Classifier::InputParameters::m_createRasterPalette, te::rp::Classifier::InputParameters::m_enableMultiThread, te::rp::Classifier::InputParameters::m_enableProgressInterface, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::Classifier::InputParameters::m_inputRasterPtr, te::rp::ClassifierSAMStrategy::Parameters::m_maxAngularDistances, te::rp::Classifier::OutputParameters::m_rInfo, te::rp::Classifier::OutputParameters::m_rType, te::rp::Classifier::InputParameters::m_strategyName, te::rp::ClassifierSAMStrategy::Parameters::m_trainSamplesPtr, te::rst::RasterFactory::open(), and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
| BOOST_AUTO_TEST_CASE | ( | KMeans_test | ) |
Definition at line 655 of file TsClassifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), te::rp::Classifier::InputParameters::m_createRasterPalette, te::rp::Classifier::InputParameters::m_enableMultiThread, te::rp::Classifier::InputParameters::m_enableProgressInterface, te::rp::ClassifierKMeansStrategy::Parameters::m_epsilon, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::Classifier::InputParameters::m_inputRasterPtr, te::rp::ClassifierKMeansStrategy::Parameters::m_K, te::rp::ClassifierKMeansStrategy::Parameters::m_maxInputPoints, te::rp::ClassifierKMeansStrategy::Parameters::m_maxIterations, te::rp::Classifier::OutputParameters::m_rInfo, te::rp::Classifier::OutputParameters::m_rType, te::rp::Classifier::InputParameters::m_strategyName, te::rst::RasterFactory::open(), and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
| BOOST_AUTO_TEST_SUITE | ( | classifier_tests | ) |
Definition at line 40 of file TsClassifier.cpp.
References te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), te::rp::Segmenter::InputParameters::m_enableBlockProcessing, te::rp::Segmenter::InputParameters::m_inputRasterBands, te::rp::Segmenter::InputParameters::m_inputRasterPtr, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_minSegmentSize, te::rp::Segmenter::OutputParameters::m_outputRasterPtr, te::rp::Segmenter::OutputParameters::m_rInfo, te::rp::Segmenter::OutputParameters::m_rType, te::rp::SegmenterRegionGrowingMeanStrategy::Parameters::m_segmentsSimilarityThreshold, te::rp::Segmenter::InputParameters::m_strategyName, and te::rp::Segmenter::InputParameters::setSegStrategyParams().
| void saveToShp | ( | std::vector< te::gm::Polygon * > | polygons, |
| std::vector< double > & | polygonsValues, | ||
| const std::string & | shpBaseFileName | ||
| ) |
Definition at line 92 of file TsClassifier.cpp.
References te::da::Create(), te::dt::DOUBLE_TYPE, te::da::DataSourceFactory::make(), te::gm::PolygonType, te::mem::DataSetItem::setDouble(), and te::mem::DataSetItem::setGeometry().
Referenced by BOOST_AUTO_TEST_CASE().