/home/oan/prosjekt/gotools/segmentation/gpl_distro/lsseg_1.0_gpl/include/Filters.h

Go to the documentation of this file.
00001 //===========================================================================
00002 // The Level-Set Segmentation Library (LSSEG)
00003 //
00004 //
00005 // Copyright (C) 2000-2005 SINTEF ICT, Applied Mathematics, Norway.
00006 //
00007 // This program is free software; you can redistribute it and/or          
00008 // modify it under the terms of the GNU General Public License            
00009 // as published by the Free Software Foundation version 2 of the License. 
00010 //
00011 // This program is distributed in the hope that it will be useful,        
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of         
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          
00014 // GNU General Public License for more details.                           
00015 //
00016 // You should have received a copy of the GNU General Public License      
00017 // along with this program; if not, write to the Free Software            
00018 // Foundation, Inc.,                                                      
00019 // 59 Temple Place - Suite 330,                                           
00020 // Boston, MA  02111-1307, USA.                                           
00021 //
00022 // Contact information: e-mail: tor.dokken@sintef.no                      
00023 // SINTEF ICT, Department of Applied Mathematics,                         
00024 // P.O. Box 124 Blindern,                                                 
00025 // 0314 Oslo, Norway.                                                     
00026 // 
00027 //
00028 // Other licenses are also available for this software, notably licenses
00029 // for:
00030 // - Building commercial software.                                        
00031 // - Building software whose source code you wish to keep private.        
00032 //
00033 //===========================================================================
00034 //===========================================================================
00035 //                                                                           
00036 // File: Filters.h                                                           
00037 //                                                                           
00038 // Created: Wed Feb 22 13:33:39 2006                                         
00039 //                                                                           
00040 // Author: Odd A. Andersen <Odd.Andersen@sintef.no>
00041 //                                                                           
00042 // Revision: $Id: Filters.h,v 1.10 2006/11/20 02:24:50 oan Exp $
00043 //                                                                           
00044 // Description:
00048 //                                                                           
00049 //===========================================================================
00050 
00051 #ifndef _FILTERS_H
00052 #define _FILTERS_H
00053 
00054 #include "Image.h"
00055 
00056 namespace lsseg {
00057 
00058 //===========================================================================
00072 void compute_structure_tensor_2D(const Image<double>& img, 
00073                                  Image<double>& G, 
00074                                  bool square_root = false);
00075 //===========================================================================
00076 
00077 //===========================================================================
00094 void compute_structure_tensor_3D(const Image<double>& img,
00095                                  Image<double>& G,
00096                                  bool square_root = false);
00097 //===========================================================================
00098 
00099 //===========================================================================
00119 void compute_smoothing_geometry_2D(const Image<double>& G,
00120                                    double p1,
00121                                    double p2,
00122                                    Image<double>& T,
00123                                    bool take_square_root = false);
00124 //===========================================================================
00125 
00126 //===========================================================================
00149 void compute_smoothing_geometry_3D(const Image<double>& G,
00150                                    double p1,
00151                                    double p2,
00152                                    double p3,
00153                                    Image<double>& T,
00154                                    bool take_square_root = false);
00155 //===========================================================================
00156 
00157 //===========================================================================
00171 void compute_scale_factor_2D(const Image<double>& img,
00172                              Image<double>& scale_accum,
00173                              Image<double>& time_accum,
00174                              double dt,
00175                              double T);
00176 //===========================================================================
00177 
00178 //===========================================================================
00193 void compute_scale_factor_3D(const Image<double>& img,
00194                              Image<double>& scale_accum,
00195                              Image<double>& time_accum,
00196                              double dt,
00197                              double T);
00198 //===========================================================================
00199 
00200 //===========================================================================
00223 void nonlinear_gauss_filter_2D(const Image<double>& img_old,
00224                                Image<double>& img_new,
00225                                double dt,
00226                                double sigma,
00227                                double p);
00228 //===========================================================================
00229 
00230 //===========================================================================
00253 void nonlinear_gauss_filter_3D(const Image<double>& img_old,
00254                                Image<double>& img_new,
00255                                double dt,
00256                                double sigma,
00257                                double p);
00258 //===========================================================================
00259 
00260 //===========================================================================
00277 void anisotropic_smoothing(const Image<double>& img_old, 
00278                            Image<double>& img_new, 
00279                            double dt, 
00280                            double sigma = 0, // default is no initial blurring
00281                            double p = 1); // default is TV flow
00282 //===========================================================================
00283 
00284 
00285 }; // end namespace lsseg
00286 
00287 #endif // _FILTERS_H
00288 

Generated on Tue Nov 28 18:35:47 2006 for lsseg by  doxygen 1.4.7