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  throw( te::rp::Exception );
53 
54  //overload
55  void reset();
56 
57  //overload
58  bool execute(
59  SegmenterIdsManager& segmenterIdsManager,
60  const te::rp::SegmenterSegmentsBlock& block2ProcessInfo,
61  const te::rst::Raster& inputRaster,
62  const std::vector< unsigned int >& inputRasterBands,
63  const std::vector< std::complex< double > >& inputRasterNoDataValues,
64  const std::vector< std::complex< double > >& inputRasterBandMinValues,
65  const std::vector< std::complex< double > >& inputRasterBandMaxValues,
66  te::rst::Raster& outputRaster,
67  const unsigned int outputRasterBand,
68  const bool enableProgressInterface ) throw( te::rp::Exception );
69 
70  //overload
71  double getMemUsageEstimation( const unsigned int bandsToProcess,
72  const unsigned int pixelsNumber ) const;
73 
74  //overload
75  unsigned int getOptimalBlocksOverlapSize() const;
76 
77  //overload
78  bool shouldComputeMinMaxValues() const;
79 
80  //overload
81  BlocksMergingMethod getBlocksMergingMethod() const;
82  };
83 
84  /*!
85  \class SegmenterDummyStrategyFactory
86  \brief Raster dummy segmenter strategy factory.
87  \note Factory key: RegionGrowing
88  */
91  {
92  public:
93 
95 
97 
98  //overload
100 
101  };
102 
103  } // end namespace rp
104 } // end namespace te
105 
106 #endif
107 
Segmenter segments IDs manager.
Raster segmenter strategy factory base class.
Raster dummy segmenter strategy factory.
Raster segmenter strategy factory base class.
An abstract class for raster data strucutures.
Definition: Raster.h:71
URI C++ Library.
Raster segmenter strategy base class.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:139
Raster segmenter strategy base class.
Configuration flags for the Raster Processing module of TerraLib.
BlocksMergingMethod
Blocks merging method.
Segmenter segments block description class.
Dummy strategy (just for testing purposes).