![]() |
TerraLib 4.1
|
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 TEPDIMIMATCHING_HPP 00026 #define TEPDIMIMATCHING_HPP 00027 00028 #include "TePDIAlgorithm.hpp" 00029 #include "TePDIMatrix.hpp" 00030 00031 #include "../kernel/TeThreadParameters.h" 00032 00033 #include <map> 00034 00090 class PDI_DLL TePDIMIMatching : public TePDIAlgorithm { 00091 public : 00092 00097 TePDIMIMatching(); 00098 00102 ~TePDIMIMatching(); 00103 00113 bool CheckParameters( const TePDIParameters& parameters ) const; 00114 00115 protected : 00116 00121 typedef TePDIMatrix< double > ImgMatrixT; 00122 00128 bool RunImplementation(); 00129 00136 void ResetState( const TePDIParameters& params ); 00137 00145 static bool loadImage( const TeThreadParameters& params ); 00146 00154 static void matrix2Tiff( 00155 const ImgMatrixT& input_matrix, 00156 const std::string& out_file_name, 00157 const std::vector< TeCoord2D >& maxima_points ); 00158 00169 static void raster2Tiff( 00170 const TePDITypes::TePDIRasterPtrType& input_raster_ptr, 00171 unsigned int raster_channel, 00172 const std::string& out_file_name, 00173 const std::vector< TeCoord2D >& maxima_points, 00174 const TeSharedPtr< TeCoordPairVect >& out_tie_points_ptr, 00175 unsigned int tie_points_space ); 00176 00182 bool checkTPs( 00183 const TeCoordPairVect& tpsvec ) const; 00184 }; 00185 00190 #endif