| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIBufferedFilter.hpp
Go to the documentation of this file.

    00001 /*
    00002 TerraLib - a library for developing GIS applications.
    00003 Copyright  2001, 2002, 2003 INPE and Tecgraf/PUC-Rio.
    00004
    00005 This code is part of the TerraLib library.
    00006 This library is free software; you can redistribute it and/or
    00007 modify it under the terms of the GNU Lesser General Public
    00008 License as published by the Free Software Foundation; either
    00009 version 2.1 of the License, or (at your option) any later version.
    00010
    00011 You should have received a copy of the GNU Lesser General Public
    00012 License along with this library.
    00013
    00014 The authors reassure the license terms regarding the warranties.
    00015 They specifically disclaim any warranties, including, but not limited to,
    00016 the implied warranties of merchantability and fitness for a particular
    00017 purpose. The library provided hereunder is on an "as is" basis, and the
    00018 authors have no obligation to provide maintenance, support, updates,
    00019 enhancements, or modifications.
    00020 In no event shall INPE be held liable to any party
    00021 for direct, indirect, special, incidental, or consequential damages arising
    00022 out of the use of this library and its documentation.
    00023 */
    00024
    00025 #ifndef TEPDIBUFFEREDFILTER_HPP
    00026   #define TEPDIBUFFEREDFILTER_HPP
    00027
    00028   #include "TePDIAlgorithm.hpp"
    00029   #include "TePDIParameters.hpp"
    00030   #include "TePDITypes.hpp"
    00031   #include "TePDIFilterMask.hpp"
    00032   #include "../kernel/TeSharedPtr.h"
    00033
    00039   class PDI_DLL TePDIBufferedFilter : public TePDIAlgorithm {
    00040     public :
    00042       typedef TeSharedPtr< TePDIBufferedFilter > pointer;
    00044       typedef const TeSharedPtr< TePDIBufferedFilter > const_pointer;
    00045
    00049       virtual ~TePDIBufferedFilter();
    00050
    00051     protected :
    00055       double** conv_buf_;
    00056
    00060       unsigned int conv_buf_lines_;
    00061
    00065       unsigned int conv_buf_columns_;
    00066
    00070       double** temp_maskmatrix_;
    00071
    00075       unsigned int temp_maskmatrix_lines_;
    00076
    00080       unsigned int temp_maskmatrix_columns_;
    00081
    00086       TePDIBufferedFilter();
    00087
    00093       virtual void ResetState( const TePDIParameters& params );
    00094
    00098       void init_conv_buf();
    00099
    00103       void init_maskmatrix();
    00104
    00111       void reset_conv_buf( unsigned int lines, unsigned int columns );
    00112
    00118       void reset_maskmatrix( TePDIFilterMask::pointer& mask );
    00119
    00127       void up_conv_buf( TePDITypes::TePDIRasterPtrType& inRaster, unsigned int line,
    00128         unsigned int band );
    00129
    00140       void conv_buf_estatistics( unsigned int start_line, unsigned int start_column,
    00141         unsigned int width, unsigned int height, double& mean, double& variance );
    00142
    00148       void conv_buf_roolup( unsigned int count );
    00149
    00150   };
    00151
    00152 #endif //TEPDIBUFFEREDFILTER_HPP

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines