This class is GUI used to define the classifier parameters for the RP constast operation. More...
#include <ClassifierWizardPage.h>
Public Slots | |
| void | onChangeClassifier (int index) |
| void | onROIManagerClosed (te::cl::ROISet *rs) |
| void | showROIManager (bool show) |
Public Member Functions | |
| ClassifierWizardPage (QWidget *parent=0) | |
| void | clearCanvas () |
| te::rp::Classifier::InputParameters | getInputParams () |
| te::rp::Classifier::OutputParameters | getOutputParams () |
| bool | getPallete () |
| te::cl::ROISet * | getROISet () |
| bool | isComplete () const |
| void | onMapDisplayExtentChanged () |
| void | set (te::map::AbstractLayerPtr layer) |
| This method is used to set the selected layer for classifier operation. More... | |
| void | setActionGroup (QActionGroup *actionGroup) |
| void | setList (std::list< te::map::AbstractLayerPtr > &layerList) |
| void | setMapDisplay (te::qt::widgets::MapDisplay *mapDisplay) |
| ~ClassifierWizardPage () | |
Protected Member Functions | |
| void | fillClassifierTypes () |
| te::rp::ClassifierEDStrategy::Parameters::MClassesSamplesCTPtr | getEDSamples (te::cl::ROISet *rs, te::rst::Raster *raster) |
| te::rp::ClassifierMAPStrategy::Parameters::MClassesSamplesCTPtr | getMAPSamples (te::cl::ROISet *rs, te::rst::Raster *raster) |
| te::rp::ClassifierSAMStrategy::ClassesSamplesTPtr | getSAMSamples (te::cl::ROISet *rs, te::rst::Raster *raster) |
| void | listBands () |
Private Types | |
| enum | ClassifierTypes { CLASSIFIER_ISOSEG, CLASSIFIER_KMEANS, CLASSIFIER_MAP, CLASSIFIER_EM, CLASSIFIER_SAM, CLASSIFIER_ED } |
Private Member Functions | |
| void | fillEDTable (te::cl::ROI *roi) |
| void | fillMAPTable (te::cl::ROI *roi) |
| void | fillSAMTable (te::cl::ROI *roi) |
Private Attributes | |
| bool | m_checkNumSamples |
| te::map::AbstractLayerPtr | m_layer |
| std::unique_ptr< te::qt::widgets::ROIManagerDialog > | m_roiMngDlg |
| te::cl::ROISet * | m_rs |
| std::unique_ptr< Ui::ClassifierWizardPageForm > | m_ui |
This class is GUI used to define the classifier parameters for the RP constast operation.
Definition at line 68 of file ClassifierWizardPage.h.
| Enumerator | |
|---|---|
| CLASSIFIER_ISOSEG | |
| CLASSIFIER_KMEANS | |
| CLASSIFIER_MAP | |
| CLASSIFIER_EM | |
| CLASSIFIER_SAM | |
| CLASSIFIER_ED | |
Definition at line 72 of file ClassifierWizardPage.h.
| te::qt::widgets::ClassifierWizardPage::ClassifierWizardPage | ( | QWidget * | parent = 0 | ) |
|
default |
Referenced by Q_DECLARE_METATYPE().
| void te::qt::widgets::ClassifierWizardPage::clearCanvas | ( | ) |
Definition at line 741 of file ClassifierWizardPage.cpp.
References m_roiMngDlg.
|
protected |
Definition at line 317 of file ClassifierWizardPage.cpp.
References CLASSIFIER_ED, CLASSIFIER_EM, CLASSIFIER_ISOSEG, CLASSIFIER_KMEANS, CLASSIFIER_MAP, CLASSIFIER_SAM, and m_ui.
|
private |
Definition at line 701 of file ClassifierWizardPage.cpp.
References te::cl::ROI::getColor(), te::cl::ROI::getLabel(), te::cl::ROI::getPolygons(), m_checkNumSamples, and m_ui.
Referenced by onChangeClassifier().
|
private |
Definition at line 613 of file ClassifierWizardPage.cpp.
References te::cl::ROI::getColor(), te::cl::ROI::getLabel(), te::cl::ROI::getPolygons(), m_checkNumSamples, and m_ui.
Referenced by onChangeClassifier().
|
private |
Definition at line 653 of file ClassifierWizardPage.cpp.
References te::cl::ROI::getColor(), te::cl::ROI::getLabel(), te::cl::ROI::getPolygons(), m_checkNumSamples, and m_ui.
Referenced by onChangeClassifier().
|
protected |
Definition at line 409 of file ClassifierWizardPage.cpp.
References te::rst::PolygonIterator< T >::begin(), te::rst::PolygonIterator< T >::end(), te::rst::PolygonIterator< T >::getColumn(), te::cl::ROISet::getROISet(), te::rst::PolygonIterator< T >::getRow(), te::gm::Geometry::getSRID(), te::rst::Raster::getValues(), m_layer, m_ui, p, and te::gm::CurvePolygon::transform().
Referenced by getInputParams().
| te::rp::Classifier::InputParameters te::qt::widgets::ClassifierWizardPage::getInputParams | ( | ) |
Definition at line 152 of file ClassifierWizardPage.cpp.
References te::rp::ClassifierISOSegStrategy::Parameters::BhattacharyyaDistanceType, CLASSIFIER_ED, CLASSIFIER_EM, CLASSIFIER_ISOSEG, CLASSIFIER_KMEANS, CLASSIFIER_MAP, CLASSIFIER_SAM, ds, te::common::FreeContents(), getEDSamples(), te::da::GetFirstGeomProperty(), te::da::GetFirstPropertyPos(), te::gm::GeometryProperty::getGeometryType(), getMAPSamples(), te::dt::Property::getName(), te::map::GetRaster(), getSAMSamples(), te::rp::ClassifierISOSegStrategy::Parameters::m_acceptanceThreshold, te::rp::ClassifierEMStrategy::Parameters::m_clustersMeans, te::rp::ClassifierISOSegStrategy::Parameters::m_distanceType, te::rp::Classifier::InputParameters::m_enableProgressInterface, te::rp::ClassifierKMeansStrategy::Parameters::m_epsilon, te::rp::ClassifierEMStrategy::Parameters::m_epsilon, te::rp::Classifier::InputParameters::m_inputPolygons, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::ClassifierKMeansStrategy::Parameters::m_K, m_layer, te::rp::ClassifierSAMStrategy::Parameters::m_maxAngularDistances, te::rp::ClassifierKMeansStrategy::Parameters::m_maxInputPoints, te::rp::ClassifierEMStrategy::Parameters::m_maxInputPoints, te::rp::ClassifierKMeansStrategy::Parameters::m_maxIterations, te::rp::ClassifierEMStrategy::Parameters::m_maxIterations, te::rp::ClassifierEMStrategy::Parameters::m_numberOfClusters, m_roiMngDlg, te::rp::Classifier::InputParameters::m_strategyName, te::rp::ClassifierEDStrategy::Parameters::m_trainSamplesPtr, te::rp::ClassifierMAPStrategy::Parameters::m_trainSamplesPtr, te::rp::ClassifierSAMStrategy::Parameters::m_trainSamplesPtr, m_ui, te::rp::ClassifierISOSegStrategy::Parameters::MahalanobisDistanceType, te::gm::Multi2Single(), te::gm::MultiPolygonType, te::dt::RASTER_TYPE, and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
|
protected |
Definition at line 344 of file ClassifierWizardPage.cpp.
References te::rst::PolygonIterator< T >::begin(), te::rst::PolygonIterator< T >::end(), te::rst::PolygonIterator< T >::getColumn(), te::cl::ROISet::getROISet(), te::rst::PolygonIterator< T >::getRow(), te::gm::Geometry::getSRID(), te::rst::Raster::getValues(), m_layer, m_ui, p, and te::gm::CurvePolygon::transform().
Referenced by getInputParams().
| te::rp::Classifier::OutputParameters te::qt::widgets::ClassifierWizardPage::getOutputParams | ( | ) |
Definition at line 305 of file ClassifierWizardPage.cpp.
| bool te::qt::widgets::ClassifierWizardPage::getPallete | ( | ) |
Definition at line 751 of file ClassifierWizardPage.cpp.
References m_ui.
| te::cl::ROISet * te::qt::widgets::ClassifierWizardPage::getROISet | ( | ) |
Definition at line 312 of file ClassifierWizardPage.cpp.
References m_roiMngDlg.
|
protected |
Definition at line 474 of file ClassifierWizardPage.cpp.
References te::rst::PolygonIterator< T >::begin(), te::rst::PolygonIterator< T >::end(), te::rst::PolygonIterator< T >::getColumn(), te::cl::ROISet::getROISet(), te::rst::PolygonIterator< T >::getRow(), te::gm::Geometry::getSRID(), te::rst::Raster::getValues(), m_layer, m_ui, p, and te::gm::CurvePolygon::transform().
Referenced by getInputParams().
| bool te::qt::widgets::ClassifierWizardPage::isComplete | ( | ) | const |
Definition at line 99 of file ClassifierWizardPage.cpp.
References CLASSIFIER_ED, CLASSIFIER_ISOSEG, CLASSIFIER_MAP, CLASSIFIER_SAM, m_checkNumSamples, and m_ui.
|
protected |
Definition at line 329 of file ClassifierWizardPage.cpp.
References te::map::GetRaster(), m_layer, and m_ui.
Referenced by set().
|
slot |
Definition at line 547 of file ClassifierWizardPage.cpp.
References CLASSIFIER_ED, CLASSIFIER_MAP, CLASSIFIER_SAM, fillEDTable(), fillMAPTable(), fillSAMTable(), te::cl::ROISet::getROISet(), m_checkNumSamples, m_rs, and m_ui.
Referenced by onROIManagerClosed().
| void te::qt::widgets::ClassifierWizardPage::onMapDisplayExtentChanged | ( | ) |
Definition at line 746 of file ClassifierWizardPage.cpp.
References m_roiMngDlg.
|
slot |
Definition at line 588 of file ClassifierWizardPage.cpp.
References m_rs, m_ui, and onChangeClassifier().
| void te::qt::widgets::ClassifierWizardPage::set | ( | te::map::AbstractLayerPtr | layer | ) |
This method is used to set the selected layer for classifier operation.
| layer | The layer ptr |
Definition at line 122 of file ClassifierWizardPage.cpp.
References listBands(), m_layer, and m_roiMngDlg.
| void te::qt::widgets::ClassifierWizardPage::setActionGroup | ( | QActionGroup * | actionGroup | ) |
Definition at line 608 of file ClassifierWizardPage.cpp.
References m_roiMngDlg.
| void te::qt::widgets::ClassifierWizardPage::setList | ( | std::list< te::map::AbstractLayerPtr > & | layerList | ) |
Definition at line 131 of file ClassifierWizardPage.cpp.
References m_roiMngDlg, and m_ui.
| void te::qt::widgets::ClassifierWizardPage::setMapDisplay | ( | te::qt::widgets::MapDisplay * | mapDisplay | ) |
Definition at line 603 of file ClassifierWizardPage.cpp.
References m_roiMngDlg.
|
slot |
Definition at line 539 of file ClassifierWizardPage.cpp.
References m_roiMngDlg.
|
private |
Definition at line 156 of file ClassifierWizardPage.h.
Referenced by fillEDTable(), fillMAPTable(), fillSAMTable(), isComplete(), and onChangeClassifier().
|
private |
Definition at line 152 of file ClassifierWizardPage.h.
Referenced by getEDSamples(), getInputParams(), getMAPSamples(), getSAMSamples(), listBands(), and set().
|
private |
Definition at line 150 of file ClassifierWizardPage.h.
Referenced by clearCanvas(), getInputParams(), getROISet(), onMapDisplayExtentChanged(), set(), setActionGroup(), setList(), setMapDisplay(), and showROIManager().
|
private |
Definition at line 154 of file ClassifierWizardPage.h.
Referenced by onChangeClassifier(), and onROIManagerClosed().
|
private |
Definition at line 149 of file ClassifierWizardPage.h.
Referenced by fillClassifierTypes(), fillEDTable(), fillMAPTable(), fillSAMTable(), getEDSamples(), getInputParams(), getMAPSamples(), getPallete(), getSAMSamples(), isComplete(), listBands(), onChangeClassifier(), onROIManagerClosed(), and setList().