| 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/TePDIMorfFilter.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 TEPDIMORFFILTER_HPP
    00026   #define TEPDIMORFFILTER_HPP
    00027
    00028   #include "TePDIBufferedFilter.hpp"
    00029   #include "TePDIParameters.hpp"
    00030   #include "../kernel/TeSharedPtr.h"
    00031
    00046   class PDI_DLL TePDIMorfFilter : public TePDIBufferedFilter {
    00047     public :
    00048
    00050       enum TePDIMorfType{
    00052         TePDIMDilationType = 1,
    00054         TePDIMErosionType = 2,
    00056         TePDIMMedianType = 3,
    00058         TePDIMModeType = 4
    00059       };
    00060
    00065       TePDIMorfFilter();
    00066
    00070       ~TePDIMorfFilter();
    00071
    00081       bool CheckParameters( const TePDIParameters& parameters ) const;
    00082
    00083     protected :
    00088       double* double_buffer_;
    00089
    00095       bool RunImplementation();
    00096
    00102       bool RunDilation();
    00103
    00109       bool RunErosion();
    00110
    00116       bool RunMedian();
    00117
    00123       bool RunMode();
    00124
    00130       void ResetState( const TePDIParameters& params );
    00131
    00132   };
    00133
    00138 #endif //TEPDIMORFFILTER_HPP

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines