Loading...
Searching...
No Matches
KernelRatioOperation.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/sa/core/KernelRatioOperation.h
22
23 \brief This file contains a class that represents the kernel ratio operation.
24
25 \reference Adapted from TerraLib4.
26*/
27
28#ifndef __TERRALIB_SA_INTERNAL_KERNELRATIOOPERATION_H
29#define __TERRALIB_SA_INTERNAL_KERNELRATIOOPERATION_H
30
31// Terralib Includes
32#include "../Config.h"
33#include "KernelFunctions.h"
34#include "KernelOperation.h"
35#include "KernelParams.h"
36
37// STL Includes
38#include <map>
39#include <memory>
40
41
42namespace te
43{
44 namespace sa
45 {
46 /*!
47 \class KernelRatioOperation
48
49 \brief Class used to calculate the kernel ratio of a datasets
50
51 \sa KernelOperation
52 */
54 {
55 public:
56
57 /*! \brief Default constructor. */
59
60 /*! \brief Virtual destructor. */
62
63 public:
64
65 /*! \brief Function to execute the kernel operation. */
66 virtual void execute();
67
69
70 protected:
71
72 /*! Function used to build the tree with data set information */
73 virtual void buildTree();
74
75 protected:
76
77 te::sa::KernelMap m_kMapA; //!< Kernel map with input data A.
78 te::sa::KernelMap m_kMapB; //!< Kernel map with input data B.
79
80 std::unique_ptr<te::sa::KernelInputParams> m_inputParamsA; //!< Kernel input parameters A.
81 std::unique_ptr<te::sa::KernelInputParams> m_inputParamsB; //!< Kernel input parameters B.
82 };
83 } // end namespace sa
84} // end namespace te
85
86#endif //__TERRALIB_SA_INTERNAL_KERNELRATIOOPERATION_H
This file contains a functions used by the kernel operation.
This file contains a class that represents the kernel operation.
This file contains a class that represents the kernel parameters.
Class that represents the kernel input parameters.
Definition: KernelParams.h:55
Virtual class used to execute the kernel operations.
Class used to calculate the kernel ratio of a datasets.
void setInputParameters(te::sa::KernelInputParams *inParamsA, te::sa::KernelInputParams *inParamsB)
te::sa::KernelMap m_kMapB
Kernel map with input data B.
KernelRatioOperation()
Default constructor.
std::unique_ptr< te::sa::KernelInputParams > m_inputParamsB
Kernel input parameters B.
te::sa::KernelMap m_kMapA
Kernel map with input data A.
virtual void execute()
Function to execute the kernel operation.
~KernelRatioOperation()
Virtual destructor.
std::unique_ptr< te::sa::KernelInputParams > m_inputParamsA
Kernel input parameters A.
std::map< int, std::pair< te::gm::Geometry *, double > > KernelMap
TerraLib.
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:133