ISOSeg strategy for OBIA classification. The algorithm orders regions by area (larger first), and classify the largest region as Cluster 1. All regions similar to this cluster are inserted in Cluster 1, otherwise new Clusters are created. After all regions belong to a cluster, the algorithm merges similar clusters. The acceptance threshold is the only parameter given by the user, and it indicates the maximum distance between two regions to be clustered togheter.
More...
#include <ClassifierISOSegStrategy.h>
ISOSeg strategy for OBIA classification. The algorithm orders regions by area (larger first), and classify the largest region as Cluster 1. All regions similar to this cluster are inserted in Cluster 1, otherwise new Clusters are created. After all regions belong to a cluster, the algorithm merges similar clusters. The acceptance threshold is the only parameter given by the user, and it indicates the maximum distance between two regions to be clustered togheter.
Definition at line 54 of file ClassifierISOSegStrategy.h.
te::rp::ClassifierISOSegStrategy::ClassifierISOSegStrategy |
( |
| ) |
|
te::rp::ClassifierISOSegStrategy::~ClassifierISOSegStrategy |
( |
| ) |
|
bool te::rp::ClassifierISOSegStrategy::execute |
( |
const te::rst::Raster & |
inputRaster, |
|
|
const std::vector< unsigned int > & |
inputRasterBands, |
|
|
const std::vector< te::gm::Polygon * > & |
inputPolygons, |
|
|
te::rst::Raster & |
outputRaster, |
|
|
const unsigned int |
outputRasterBand, |
|
|
const bool |
enableProgressInterface |
|
) |
| |
throw | ( | te::rp::Exception |
| ) | | |
|
virtual |
Executes the classification strategy.
- Parameters
-
inputRaster | Input raster. |
inputRasterBands | Input raster bands. |
inputPolygons | The polygons to be classified when using object-based image analysis (OBIA). |
outputRaster | Output raster. |
outputRasterBand | Output raster band. |
enableProgressInterface | Enable the internal strategy to update the progress interface. |
- Returns
- true if OK, false on errors.
Implements te::rp::ClassifierStrategy.
std::vector< int > te::rp::ClassifierISOSegStrategy::getOutputDataTypes |
( |
| ) |
const |
|
virtual |
Returns the output raster pixel data type for each output band.
- Returns
- Returns the output raster pixel data type for each output band.
Implements te::rp::ClassifierStrategy.
Initialize the classification strategy.
- Parameters
-
strategyParams | A pointer to the user given specific classification strategy parameters ou NULL if no parameters are present. |
- Returns
- true if OK, false on errors.
Implements te::rp::ClassifierStrategy.
bool te::rp::ClassifierISOSegStrategy::m_isInitialized |
|
protected |
std::multimap<double, Pattern*, std::greater<double> > te::rp::ClassifierISOSegStrategy::m_regions |
|
protected |
The documentation for this class was generated from the following file: