Loading...
Searching...
No Matches
SegmenterRegionGrowingStrategyParameters.h
Go to the documentation of this file.
1/* Copyright (C) 2015 National Institute For Space Research (INPE) - Brazil.
2
3 This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5 TerraLib is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 TerraLib is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with TerraLib. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@terralib.org>.
18 */
19
20/*!
21 \file terralib/rp/SegmenterRegionGrowingMeanStrategy.h
22 \brief Raster region growing segmenter Mean strategy.
23 */
24
25#ifndef __TERRALIB_RP_INTERNAL_SEGMENTERREGIONGROWINGSTRATEGYPARAMETERS_H
26#define __TERRALIB_RP_INTERNAL_SEGMENTERREGIONGROWINGSTRATEGYPARAMETERS_H
27
29#include "Config.h"
30
31namespace te
32{
33 namespace rp
34 {
35 /*!
36 \class SegmenterRegionGrowingStrategyParameters
37 \brief Segmenter Region Growing Strategy Parameters
38 */
41 {
42 public:
43
44 unsigned int m_minSegmentSize; //!< A positive minimum segment size (pixels number - default: 1).
45
46 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 ).
47
48 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.
49
50 bool m_enableLocalMutualBestFitting; //!< If enabled, a merge only occurs between two segments if the minimum dissimilarity criteria is best fulfilled mutually (default: false).
51
53
54 //overload
57
58 //overload
59 virtual void reset() _NOEXCEPT_OP(false);
60
61 //overload
62 virtual bool serialize( AlgorithmParametersSerializer& serializer ) const;
63
64 protected :
65
67 };
68 } // end namespace rp
69} // end namespace te
70
71#endif // __TERRALIB_RP_INTERNAL_SEGMENTERREGIONGROWINGSTRATEGYPARAMETERS_H
#define _NOEXCEPT_OP(x)
Raster segmenter strategy parameters base class.
A class to standardize algorithm parameters serialization.
double m_segmentsSimilarityThreshold
Segments similarity treshold - Use lower values to merge only those segments that are more similar - ...
unsigned int m_segmentsSimIncreaseSteps
The maximum number of steps to increment the similarity threshold value for the cases where no segmen...
virtual void reset() _NOEXCEPT_OP(false)
Clear all internal allocated resources and reset the parameters instance to its initial state.
const SegmenterRegionGrowingStrategyParameters & operator=(const SegmenterRegionGrowingStrategyParameters &params)
bool m_enableLocalMutualBestFitting
If enabled, a merge only occurs between two segments if the minimum dissimilarity criteria is best fu...
unsigned int m_minSegmentSize
A positive minimum segment size (pixels number - default: 1).
TerraLib.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:139
Proxy configuration file for TerraView (see terraview_config.h).