#include <SegmenterRegionGrowingStrategy.h>
Public Member Functions | |
AbstractParameters * | clone () const |
Create a clone copy of this instance. More... | |
const Parameters & | operator= (const Parameters ¶ms) |
Parameters () | |
void | reset () throw ( te::rp::Exception ) |
Clear all internal allocated resources and reset the parameters instance to its initial state. More... | |
~Parameters () | |
Public Attributes | |
Baatz specific parameters | |
std::vector< double > | m_bandsWeights |
The weight given to each band, when applicable (note: the bands weights sum must always be 1) or an empty vector indicating that all bands have the same weight. More... | |
double | m_colorWeight |
The weight given to the color component, deafult:0.9, valid range: [0,1]. More... | |
double | m_compactnessWeight |
The weight given to the compactness component, deafult:0.5, valid range: [0,1]. More... | |
Global parameters | |
enum | SegmentFeaturesType { InvalidFeaturesType, MeanFeaturesType, BaatzFeaturesType } |
unsigned int | m_minSegmentSize |
A positive minimum segment size (pixels number - default: 100). More... | |
double | m_segmentsSimilarityThreshold |
Segments similarity treshold - Use lower values to merge only those segments that are more similar - Higher values will allow more segments to be merged - valid values range: positive values - default: 0.03 ). More... | |
SegmentFeaturesType | m_segmentFeatures |
What segment features will be used on the segmentation process (default:InvalidFeaturesType). More... | |
unsigned int | m_segmentsSimIncreaseSteps |
The maximum number of steps to increment the similarity threshold value for the cases where no segment merge occurred - zero will disable segment similarity threshold increments - defaul: 2. More... | |
bool | m_enableLocalMutualBestFitting |
If enabled, a merge only occurs between two segments if the minimum dissimilarity criteria is best fulfilled mutually (default: false). More... | |
bool | m_enableSameIterationMerges |
If enabled, a merged segment could be merged with another within the same iteration (default:false). More... | |
Definition at line 58 of file SegmenterRegionGrowingStrategy.h.
Segment features types.
Definition at line 68 of file SegmenterRegionGrowingStrategy.h.
te::rp::SegmenterRegionGrowingStrategy::Parameters::Parameters | ( | ) |
Definition at line 77 of file SegmenterRegionGrowingStrategy.cpp.
References reset().
te::rp::SegmenterRegionGrowingStrategy::Parameters::~Parameters | ( | ) |
Definition at line 82 of file SegmenterRegionGrowingStrategy.cpp.
|
virtual |
Create a clone copy of this instance.
Implements te::common::AbstractParameters.
Definition at line 119 of file SegmenterRegionGrowingStrategy.cpp.
const SegmenterRegionGrowingStrategy::Parameters & te::rp::SegmenterRegionGrowingStrategy::Parameters::operator= | ( | const Parameters & | params | ) |
Definition at line 87 of file SegmenterRegionGrowingStrategy.cpp.
References m_bandsWeights, m_colorWeight, m_compactnessWeight, m_enableLocalMutualBestFitting, m_enableSameIterationMerges, m_minSegmentSize, m_segmentFeatures, m_segmentsSimilarityThreshold, m_segmentsSimIncreaseSteps, and te::rp::SegmenterRegionGrowingStrategy::reset().
|
virtual |
Clear all internal allocated resources and reset the parameters instance to its initial state.
Implements te::common::AbstractParameters.
Definition at line 105 of file SegmenterRegionGrowingStrategy.cpp.
Referenced by Parameters(), and te::rp::SegmenterRegionGrowingStrategy::reset().
std::vector< double > te::rp::SegmenterRegionGrowingStrategy::Parameters::m_bandsWeights |
The weight given to each band, when applicable (note: the bands weights sum must always be 1) or an empty vector indicating that all bands have the same weight.
Definition at line 94 of file SegmenterRegionGrowingStrategy.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), te::rp::SegmenterRegionGrowingStrategy::initialize(), and operator=().
double te::rp::SegmenterRegionGrowingStrategy::Parameters::m_colorWeight |
The weight given to the color component, deafult:0.9, valid range: [0,1].
Definition at line 96 of file SegmenterRegionGrowingStrategy.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), operator=(), and te::qt::widgets::SegmenterWizardPage::SegmenterWizardPage().
double te::rp::SegmenterRegionGrowingStrategy::Parameters::m_compactnessWeight |
The weight given to the compactness component, deafult:0.5, valid range: [0,1].
Definition at line 98 of file SegmenterRegionGrowingStrategy.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), operator=(), and te::qt::widgets::SegmenterWizardPage::SegmenterWizardPage().
bool te::rp::SegmenterRegionGrowingStrategy::Parameters::m_enableLocalMutualBestFitting |
If enabled, a merge only occurs between two segments if the minimum dissimilarity criteria is best fulfilled mutually (default: false).
Definition at line 83 of file SegmenterRegionGrowingStrategy.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), and operator=().
bool te::rp::SegmenterRegionGrowingStrategy::Parameters::m_enableSameIterationMerges |
If enabled, a merged segment could be merged with another within the same iteration (default:false).
Definition at line 85 of file SegmenterRegionGrowingStrategy.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), and operator=().
unsigned int te::rp::SegmenterRegionGrowingStrategy::Parameters::m_minSegmentSize |
A positive minimum segment size (pixels number - default: 100).
Definition at line 75 of file SegmenterRegionGrowingStrategy.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), te::rp::SegmenterRegionGrowingStrategy::getOptimalBlocksOverlapSize(), te::rp::SegmenterRegionGrowingStrategy::initialize(), te::qt::widgets::SegmenterDialog::on_okPushButton_clicked(), operator=(), te::idl::rp::RegionGrowingSegmenter(), and te::qt::widgets::SegmenterWizardPage::SegmenterWizardPage().
SegmentFeaturesType te::rp::SegmenterRegionGrowingStrategy::Parameters::m_segmentFeatures |
What segment features will be used on the segmentation process (default:InvalidFeaturesType).
Definition at line 79 of file SegmenterRegionGrowingStrategy.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), te::rp::SegmenterRegionGrowingStrategy::getMemUsageEstimation(), te::rp::SegmenterRegionGrowingStrategy::initialize(), te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), and operator=().
double te::rp::SegmenterRegionGrowingStrategy::Parameters::m_segmentsSimilarityThreshold |
Segments similarity treshold - Use lower values to merge only those segments that are more similar - Higher values will allow more segments to be merged - valid values range: positive values - default: 0.03 ).
Definition at line 77 of file SegmenterRegionGrowingStrategy.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), te::qt::widgets::SegmenterWizardPage::getInputParams(), te::rp::SegmenterRegionGrowingStrategy::initialize(), te::qt::widgets::SegmenterDialog::on_okPushButton_clicked(), operator=(), te::idl::rp::RegionGrowingSegmenter(), and te::qt::widgets::SegmenterWizardPage::SegmenterWizardPage().
unsigned int te::rp::SegmenterRegionGrowingStrategy::Parameters::m_segmentsSimIncreaseSteps |
The maximum number of steps to increment the similarity threshold value for the cases where no segment merge occurred - zero will disable segment similarity threshold increments - defaul: 2.
Definition at line 81 of file SegmenterRegionGrowingStrategy.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), and operator=().