SegmenterDummyStrategy.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 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/SegmenterDummyStrategy.h
22  \brief Dummy strategy (just for testing purposes).
23  */
24 
25 #ifndef __TERRALIB_RP_INTERNAL_SEGMENTERDUMMYSTRATEGY_H
26 #define __TERRALIB_RP_INTERNAL_SEGMENTERDUMMYSTRATEGY_H
27 
29 #include "SegmenterStrategy.h"
30 #include "Config.h"
31 
32 
33 namespace te
34 {
35  namespace rp
36  {
37  /*!
38  \class SegmenterDummyStrategy
39  \brief Dummy strategy (just for testing purposes).
40  */
42  {
43  public:
44 
46 
48 
49  //overload
50  bool initialize(
51  SegmenterStrategyParameters const* const strategyParams ) ;
52 
53  //overload
54  void reset();
55 
56  //overload
57  bool execute(
58  SegmenterIdsManager& segmenterIdsManager,
59  const te::rp::SegmenterSegmentsBlock& block2ProcessInfo,
60  const te::rst::Raster& inputRaster,
61  const std::vector< unsigned int >& inputRasterBands,
62  const std::vector< std::complex< double > >& inputRasterNoDataValues,
63  const std::vector< std::complex< double > >& inputRasterBandMinValues,
64  const std::vector< std::complex< double > >& inputRasterBandMaxValues,
65  te::rst::Raster& outputRaster,
66  const unsigned int outputRasterBand,
67  const bool enableProgressInterface ) ;
68 
69  //overload
70  double getMemUsageEstimation( const unsigned int bandsToProcess,
71  const unsigned int pixelsNumber ) const;
72 
73  //overload
74  unsigned int getOptimalBlocksOverlapSize() const;
75 
76  //overload
78 
79  //overload
81  };
82 
83  /*!
84  \class SegmenterDummyStrategyFactory
85  \brief Raster dummy segmenter strategy factory.
86  \note Factory key: RegionGrowing
87  */
90  {
91  public:
92 
94 
96 
97  //overload
99 
100  };
101 
102  } // end namespace rp
103 } // end namespace te
104 
105 #endif
106 
Raster segmenter strategy factory base class.
Raster segmenter strategy base class.
Raster dummy segmenter strategy factory.
te::rp::SegmenterStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
Dummy strategy (just for testing purposes).
bool shouldComputeMinMaxValues() const
Returns if the min and max pixel values should be computed.
bool initialize(SegmenterStrategyParameters const *const strategyParams)
Initialize the segmentation strategy.
BlocksMergingMethod getBlocksMergingMethod() const
Return the strategy blocks merging method.
unsigned int getOptimalBlocksOverlapSize() const
Returns a optimal blocks overlap size (number of border pixels overlapped between blocks,...
double getMemUsageEstimation(const unsigned int bandsToProcess, const unsigned int pixelsNumber) const
Returns a memory estimation (bytes).
void reset()
Clear all internal allocated resources and go back to the initial not-initialized state.
bool execute(SegmenterIdsManager &segmenterIdsManager, const te::rp::SegmenterSegmentsBlock &block2ProcessInfo, const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, const std::vector< std::complex< double > > &inputRasterNoDataValues, const std::vector< std::complex< double > > &inputRasterBandMinValues, const std::vector< std::complex< double > > &inputRasterBandMaxValues, te::rst::Raster &outputRaster, const unsigned int outputRasterBand, const bool enableProgressInterface)
Executes the segmentation strategy over region delimited by the given block.
Segmenter segments IDs manager.
Segmenter segments block description class.
Raster segmenter strategy factory base class.
Raster segmenter strategy base class.
BlocksMergingMethod
Blocks merging method.
An abstract class for raster data strucutures.
Definition: Raster.h:72
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).