Segmenter Input Parameters. More...
#include <Segmenter.h>
Public Member Functions | |
AbstractParameters * | clone () const |
Create a clone copy of this instance. More... | |
SegmenterStrategyParameters const * | getSegStrategyParams () const |
Returns a pointer to the internal specific segmenter strategy parameters. More... | |
InputParameters () | |
InputParameters (const InputParameters &other) | |
const Segmenter::InputParameters & | operator= (const Segmenter::InputParameters ¶ms) |
void | reset () throw ( te::rp::Exception ) |
Clear all internal allocated resources and reset the parameters instance to its initial state. More... | |
void | setSegStrategyParams (const SegmenterStrategyParameters &segStratParams) |
Set specific segmenter strategy parameters. More... | |
~InputParameters () | |
Public Attributes | |
unsigned char | m_blocksOverlapPercent |
The percentage of blocks overlapped area (valid range:0-25, defaul:10). More... | |
bool | m_enableBlockProcessing |
If true, the original raster will be splitted into small blocks, each one will be segmented independently and the result will be merged (if possible) at the end (default:true). More... | |
bool | m_enableProgress |
Enable/Disable the progress interface (default:false). More... | |
bool | m_enableRasterCache |
Enable/Disable the use of raster data cache (default:true). More... | |
bool | m_enableThreadedProcessing |
If true, threaded processing will be performed (best with multi-core or multi-processor systems (default:true). More... | |
std::vector< unsigned int > | m_inputRasterBands |
Bands to be processed from the input raster. More... | |
std::vector< double > | m_inputRasterNoDataValues |
A vector of values to be used as input raster no-data values or an empty vector indicating to use the default values from the input raster.. More... | |
te::rst::Raster const * | m_inputRasterPtr |
Input raster. More... | |
unsigned int | m_maxBlockSize |
The input image will be split into blocks with this width for processing, this parameter tells the maximum block lateral size (width or height), the default: 0 - the size will be defined following the current system resources and physical processors number). More... | |
unsigned int | m_maxSegThreads |
The maximum number of concurrent segmenter threads (default:0 - automatically found). More... | |
std::string | m_strategyName |
The segmenter strategy name see each te::rp::SegmenterStrategyFactory inherited classes documentation for reference. More... | |
Protected Attributes | |
SegmenterStrategyParameters * | m_segStratParamsPtr |
A pointer to the internal specific segmenter strategy parameters or NULL if no parameters are present. More... | |
Segmenter Input Parameters.
Definition at line 81 of file Segmenter.h.
te::rp::Segmenter::InputParameters::InputParameters | ( | ) |
Definition at line 59 of file Segmenter.cpp.
References m_segStratParamsPtr, and reset().
te::rp::Segmenter::InputParameters::InputParameters | ( | const InputParameters & | other | ) |
Definition at line 65 of file Segmenter.cpp.
References te::rp::Algorithm::operator=(), and te::rp::Segmenter::reset().
te::rp::Segmenter::InputParameters::~InputParameters | ( | ) |
Definition at line 72 of file Segmenter.cpp.
References te::rp::Segmenter::reset().
|
virtual |
Create a clone copy of this instance.
Implements te::common::AbstractParameters.
Definition at line 122 of file Segmenter.cpp.
SegmenterStrategyParameters const * te::rp::Segmenter::InputParameters::getSegStrategyParams | ( | ) | const |
Returns a pointer to the internal specific segmenter strategy parameters.
Definition at line 140 of file Segmenter.cpp.
Referenced by te::rp::Segmenter::execute(), and te::rp::Segmenter::segmenterThreadEntry().
const Segmenter::InputParameters & te::rp::Segmenter::InputParameters::operator= | ( | const Segmenter::InputParameters & | params | ) |
Definition at line 98 of file Segmenter.cpp.
References te::common::AbstractParameters::clone(), m_blocksOverlapPercent, m_enableBlockProcessing, m_enableProgress, m_enableRasterCache, m_enableThreadedProcessing, m_inputRasterBands, m_inputRasterNoDataValues, m_inputRasterPtr, m_maxBlockSize, m_maxSegThreads, m_segStratParamsPtr, m_strategyName, and te::rp::Segmenter::reset().
|
virtual |
Clear all internal allocated resources and reset the parameters instance to its initial state.
Implements te::common::AbstractParameters.
Definition at line 77 of file Segmenter.cpp.
Referenced by InputParameters(), te::rp::Segmenter::reset(), and te::rp::Segmenter::SegmenterThreadEntryParams::SegmenterThreadEntryParams().
void te::rp::Segmenter::InputParameters::setSegStrategyParams | ( | const SegmenterStrategyParameters & | segStratParams | ) |
Set specific segmenter strategy parameters.
params | The specific segmenter strategy parameters. |
Definition at line 127 of file Segmenter.cpp.
References te::common::AbstractParameters::clone().
Referenced by te::qt::widgets::SegmenterWizardPage::getInputParams(), te::qt::widgets::SegmenterDialog::on_okPushButton_clicked(), and te::idl::rp::RegionGrowingSegmenter().
unsigned char te::rp::Segmenter::InputParameters::m_blocksOverlapPercent |
The percentage of blocks overlapped area (valid range:0-25, defaul:10).
Definition at line 99 of file Segmenter.h.
Referenced by te::rp::Segmenter::calcBestBlockSize(), te::qt::widgets::SegmenterWizard::execute(), te::rp::Segmenter::execute(), te::rp::Segmenter::initialize(), operator=(), and te::qt::widgets::SegmenterAdvancedOptionsWizardPage::SegmenterAdvancedOptionsWizardPage().
bool te::rp::Segmenter::InputParameters::m_enableBlockProcessing |
If true, the original raster will be splitted into small blocks, each one will be segmented independently and the result will be merged (if possible) at the end (default:true).
Definition at line 95 of file Segmenter.h.
Referenced by te::qt::widgets::SegmenterWizardPage::apply(), te::qt::widgets::SegmenterWizard::execute(), te::rp::Segmenter::execute(), te::qt::widgets::SegmenterDialog::on_okPushButton_clicked(), operator=(), and te::qt::widgets::SegmenterAdvancedOptionsWizardPage::SegmenterAdvancedOptionsWizardPage().
bool te::rp::Segmenter::InputParameters::m_enableProgress |
Enable/Disable the progress interface (default:false).
Definition at line 103 of file Segmenter.h.
Referenced by te::qt::widgets::SegmenterWizard::execute(), te::rp::Segmenter::execute(), and operator=().
bool te::rp::Segmenter::InputParameters::m_enableRasterCache |
Enable/Disable the use of raster data cache (default:true).
Definition at line 105 of file Segmenter.h.
Referenced by te::rp::Segmenter::execute(), and operator=().
bool te::rp::Segmenter::InputParameters::m_enableThreadedProcessing |
If true, threaded processing will be performed (best with multi-core or multi-processor systems (default:true).
Definition at line 91 of file Segmenter.h.
Referenced by te::qt::widgets::SegmenterWizardPage::apply(), te::qt::widgets::SegmenterWizard::execute(), te::rp::Segmenter::execute(), te::qt::widgets::SegmenterDialog::on_okPushButton_clicked(), operator=(), and te::qt::widgets::SegmenterAdvancedOptionsWizardPage::SegmenterAdvancedOptionsWizardPage().
std::vector< unsigned int > te::rp::Segmenter::InputParameters::m_inputRasterBands |
Bands to be processed from the input raster.
Definition at line 87 of file Segmenter.h.
Referenced by te::rp::Segmenter::createCutOffLinesTiff(), te::rp::Segmenter::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), te::rp::Segmenter::initialize(), te::qt::widgets::SegmenterDialog::on_okPushButton_clicked(), operator=(), te::idl::rp::RegionGrowingSegmenter(), and te::rp::Segmenter::segmenterThreadEntry().
std::vector< double > te::rp::Segmenter::InputParameters::m_inputRasterNoDataValues |
A vector of values to be used as input raster no-data values or an empty vector indicating to use the default values from the input raster..
Definition at line 89 of file Segmenter.h.
Referenced by te::rp::Segmenter::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), te::rp::Segmenter::initialize(), and operator=().
te::rst::Raster const* te::rp::Segmenter::InputParameters::m_inputRasterPtr |
Input raster.
Definition at line 85 of file Segmenter.h.
Referenced by te::qt::widgets::SegmenterWizardPage::apply(), te::rp::Segmenter::calcBestBlockSize(), te::rp::Segmenter::createCutOffLinesTiff(), te::rp::Segmenter::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), te::rp::Segmenter::initialize(), te::qt::widgets::SegmenterDialog::on_okPushButton_clicked(), operator=(), and te::idl::rp::RegionGrowingSegmenter().
unsigned int te::rp::Segmenter::InputParameters::m_maxBlockSize |
The input image will be split into blocks with this width for processing, this parameter tells the maximum block lateral size (width or height), the default: 0 - the size will be defined following the current system resources and physical processors number).
Definition at line 97 of file Segmenter.h.
Referenced by te::qt::widgets::SegmenterWizard::execute(), te::rp::Segmenter::execute(), te::qt::widgets::SegmenterDialog::on_okPushButton_clicked(), operator=(), and te::qt::widgets::SegmenterAdvancedOptionsWizardPage::SegmenterAdvancedOptionsWizardPage().
unsigned int te::rp::Segmenter::InputParameters::m_maxSegThreads |
The maximum number of concurrent segmenter threads (default:0 - automatically found).
Definition at line 93 of file Segmenter.h.
Referenced by te::qt::widgets::SegmenterWizard::execute(), te::rp::Segmenter::execute(), te::qt::widgets::SegmenterDialog::on_okPushButton_clicked(), operator=(), and te::qt::widgets::SegmenterAdvancedOptionsWizardPage::SegmenterAdvancedOptionsWizardPage().
|
protected |
A pointer to the internal specific segmenter strategy parameters or NULL if no parameters are present.
Definition at line 142 of file Segmenter.h.
Referenced by InputParameters(), and operator=().
std::string te::rp::Segmenter::InputParameters::m_strategyName |
The segmenter strategy name see each te::rp::SegmenterStrategyFactory inherited classes documentation for reference.
Definition at line 101 of file Segmenter.h.
Referenced by te::rp::Segmenter::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), te::qt::widgets::SegmenterDialog::on_okPushButton_clicked(), operator=(), te::idl::rp::RegionGrowingSegmenter(), and te::rp::Segmenter::segmenterThreadEntry().