/home/oan/prosjekt/gotools/segmentation/gpl_distro/lsseg_1.0_gpl/include/level_set.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: level_set.h                                                         
00037 //                                                                           
00038 // Created: Tue Oct 25 14:02:35 2005                                         
00039 //                                                                           
00040 // Author: Odd A. Andersen <Odd.Andersen@sintef.no>
00041 //                                                                           
00042 // Revision: $Id: level_set.h,v 1.27 2006/11/22 17:15:51 oan Exp $
00043 //                                                                           
00044 // Description:
00050 //===========================================================================
00051 
00052 #ifndef _LEVEL_SET_H
00053 #define _LEVEL_SET_H
00054 
00055 #include <limits>
00056 
00057 #include "Image.h"
00058 #include "BorderCondition.h"
00059 #include "LevelSetFunction.h"
00060 #include "Mask.h"
00061 
00062 namespace lsseg {
00063 
00064 //===========================================================================
00107 void normal_direction_flow_2D(const LevelSetFunction& phi, 
00108                               LevelSetFunction& advect, // image containing advection term will
00109                                                         // be changed to contain the update
00110                               BorderCondition bcond,
00111                               double& H1,
00112                               double& H2,
00113                               const Mask* const changes_allowed_mask = 0,
00114                               const Mask* const defined_region_mask = 0);
00115 //===========================================================================
00116 
00117 //===========================================================================
00163 void normal_direction_flow_3D(const LevelSetFunction& phi, 
00164                               LevelSetFunction& advect, // image containing advection term will
00165                                                      // be changed to contain the update
00166                               BorderCondition bcond,
00167                               double& H1,
00168                               double& H2,
00169                               double& H3,
00170                               const Mask* const changes_allowed_mask = 0,
00171                               const Mask* const defined_region_mask = 0);
00172 //===========================================================================
00173 
00174 //===========================================================================
00189 int visualize_level_set(const LevelSetFunction& phi, 
00190                         Image<double>& target, 
00191                         double threshold,
00192                         double outside_intensity = 0,
00193                         double curve_intensity = 255,
00194                         double interior_intensity = 50,
00195                         const Mask* const mask = 0,
00196                         double mask_intensity = 255);
00197 //===========================================================================
00198 
00199 //===========================================================================
00211 void visualize_multisets(const LevelSetFunction** const phis,
00212                          int num_phi,
00213                          Image<double>& target,
00214                          const int** const rgb_color);
00215 //===========================================================================
00216 
00217 
00218 }; // end namespace lsseg
00219 
00220 #endif // _LEVEL_SET_H
00221 

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