#include "RPExamples.h"#include <terralib/geometry.h>#include <terralib/raster.h>#include <terralib/rp.h>#include <map>#include <string>Go to the source code of this file.
Functions | |
| void | Classifier () |
| std::vector< te::gm::Polygon * > | CreatePolygons (te::rst::Raster *rin) |
| void | DummyClassifier () |
| void | EDClassifier () |
| void | EMClassifier () |
| void | ISOSegClassifier () |
| void | KMeansClassifier () |
| void | MAPClassifier () |
| void | SAMClassifier () |
| std::vector< te::gm::Polygon * > | SegmentImage (te::rst::Raster *rin) |
| void Classifier | ( | ) |
Definition at line 686 of file examples/rp/Classifier.cpp.
References DummyClassifier(), EDClassifier(), EMClassifier(), ISOSegClassifier(), KMeansClassifier(), MAPClassifier(), and SAMClassifier().
Referenced by main().
| std::vector<te::gm::Polygon*> CreatePolygons | ( | te::rst::Raster * | rin | ) |
Definition at line 12 of file examples/rp/Classifier.cpp.
References te::rst::Raster::getExtent(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::LineStringType, te::gm::PolygonType, te::gm::CurvePolygon::push_back(), and te::gm::LineString::setPoint().
Referenced by DummyClassifier().
| void DummyClassifier | ( | ) |
Definition at line 83 of file examples/rp/Classifier.cpp.
References CreatePolygons(), te::rp::Classifier::execute(), te::rp::Classifier::initialize(), te::rp::ClassifierDummyStrategy::Parameters::m_dummyParameter, 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::rst::RasterFactory::open(), and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
Referenced by Classifier().
| void EDClassifier | ( | ) |
Definition at line 367 of file examples/rp/Classifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), 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().
Referenced by Classifier().
| void EMClassifier | ( | ) |
Definition at line 471 of file examples/rp/Classifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), te::rp::ClassifierEMStrategy::Parameters::m_clustersMeans, 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().
Referenced by Classifier().
| void ISOSegClassifier | ( | ) |
Definition at line 196 of file examples/rp/Classifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), te::rp::ClassifierISOSegStrategy::Parameters::m_acceptanceThreshold, 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::rst::RasterFactory::open(), SegmentImage(), and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
Referenced by Classifier().
| void KMeansClassifier | ( | ) |
Definition at line 624 of file examples/rp/Classifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), 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_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().
Referenced by Classifier().
| void MAPClassifier | ( | ) |
Definition at line 263 of file examples/rp/Classifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), 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().
Referenced by Classifier().
| void SAMClassifier | ( | ) |
Definition at line 535 of file examples/rp/Classifier.cpp.
References te::rp::Classifier::execute(), te::rp::Classifier::initialize(), 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().
Referenced by Classifier().
| std::vector<te::gm::Polygon*> SegmentImage | ( | te::rst::Raster * | rin | ) |
Definition at line 149 of file examples/rp/Classifier.cpp.
References te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), 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().
Referenced by BOOST_AUTO_TEST_CASE(), and ISOSegClassifier().