All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SegmenterDummyStrategy.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 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  throw( te::rp::Exception );
53 
54  //overload
55  void reset();
56 
57  //overload
58  bool execute(
59  SegmenterIdsManager& segmenterIdsManager,
60  const te::rst::Raster& inputRaster,
61  const std::vector< unsigned int >& inputRasterBands,
62  const std::vector< double >& inputRasterGains,
63  const std::vector< double >& inputRasterOffsets,
64  te::rst::Raster& outputRaster,
65  const unsigned int outputRasterBand,
66  const bool enableProgressInterface ) throw( te::rp::Exception );
67 
68  //overload
69  double getMemUsageEstimation( const unsigned int bandsToProcess,
70  const unsigned int pixelsNumber ) const;
71 
72  //overload
73  unsigned int getOptimalBlocksOverlapSize() const;
74  };
75 
76  /*!
77  \class SegmenterDummyStrategyFactory
78  \brief Raster dummy segmenter strategy factory.
79  \note Factory key: RegionGrowing
80  */
83  {
84  public:
85 
87 
89 
90  //overload
92 
93  };
94 
95  } // end namespace rp
96 } // end namespace te
97 
98 #endif
99 
Dummy strategy (just for testing purposes).
Segmenter segments IDs manager.
Raster segmenter strategy base class.
Raster segmenter strategy factory base class.
Raster segmenter strategy base class.
Configuration flags for the Raster Processing module of TerraLib.
Raster dummy segmenter strategy factory.
An abstract class for raster data strucutures.
Definition: Raster.h:70
Raster segmenter strategy factory base class.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:91