A dialog used to execute image classification. More...
#include <ClassifierDialog.h>
Public Member Functions | |
ClassifierDialog (const te::rst::Raster *inputRasterPtr, std::vector< te::gm::Polygon * > inputPolygons, const std::string &outpuRasterDSType, const std::map< std::string, std::string > &outpuRasterInfo, QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a basic dialog which is a child of parent, with widget flags set to f. More... | |
bool | getOutputRaster (boost::shared_ptr< te::rst::Raster > &outputRasterPtr) |
Returns the output result raster. More... | |
~ClassifierDialog () | |
Destructor. More... | |
Protected Slots | |
void | on_okPushButton_clicked () |
Private Attributes | |
std::vector< te::gm::Polygon * > | m_inputPolygons |
Vector of input polygons. More... | |
const te::rst::Raster * | m_inputRasterPtr |
Input raster pointer. More... | |
std::string | m_outpuRasterDSType |
Output raster data source type (as described in te::rst::RasterFactory). More... | |
std::map< std::string, std::string > | m_outpuRasterInfo |
The necessary information to create the raster (as described in te::rst::RasterFactory). More... | |
boost::shared_ptr< te::rst::Raster > | m_outputRasterPtr |
Output raster pointer. More... | |
Ui::ClassifierForm * | m_uiPtr |
User interface. More... | |
A dialog used to execute image classification.
Definition at line 60 of file ClassifierDialog.h.
te::qt::widgets::ClassifierDialog::ClassifierDialog | ( | const te::rst::Raster * | inputRasterPtr, |
std::vector< te::gm::Polygon * > | inputPolygons, | ||
const std::string & | outpuRasterDSType, | ||
const std::map< std::string, std::string > & | outpuRasterInfo, | ||
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Constructs a basic dialog which is a child of parent, with widget flags set to f.
inputRasterPtr | Input raster pointer. |
inputPolygons | Vector of input polygons. |
outpuRasterDSType | Output raster data source type (as described in te::rst::RasterFactory). |
outpuRasterInfo | The necessary information to create the raster (as described in te::rst::RasterFactory). |
parent | Parent widget pointer. |
f | Widget flags. |
Definition at line 38 of file ClassifierDialog.cpp.
References te::rst::Raster::getNumberOfBands(), m_uiPtr, and on_okPushButton_clicked().
te::qt::widgets::ClassifierDialog::~ClassifierDialog | ( | ) |
Destructor.
Definition at line 61 of file ClassifierDialog.cpp.
bool te::qt::widgets::ClassifierDialog::getOutputRaster | ( | boost::shared_ptr< te::rst::Raster > & | outputRasterPtr | ) |
Returns the output result raster.
outputRasterPtr | A pointer to the output result raster |
Definition at line 66 of file ClassifierDialog.cpp.
|
protectedslot |
Definition at line 78 of file ClassifierDialog.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, and te::rp::Classifier::InputParameters::setClassifierStrategyParams().
Referenced by ClassifierDialog().
|
private |
Vector of input polygons.
Definition at line 103 of file ClassifierDialog.h.
|
private |
Input raster pointer.
Definition at line 102 of file ClassifierDialog.h.
|
private |
Output raster data source type (as described in te::rst::RasterFactory).
Definition at line 104 of file ClassifierDialog.h.
|
private |
The necessary information to create the raster (as described in te::rst::RasterFactory).
Definition at line 105 of file ClassifierDialog.h.
|
private |
Output raster pointer.
Definition at line 106 of file ClassifierDialog.h.
|
private |
User interface.
Definition at line 101 of file ClassifierDialog.h.
Referenced by ClassifierDialog().