contrib/mul/vil3d/algo/vil3d_fill_boundary.h
Go to the documentation of this file.
00001 #ifndef vil3d_fill_boundary_h_
00002 #define vil3d_fill_boundary_h_
00003 //:
00004 // \file
00005 // \brief Fill in contour bounded regions in slices of 3D image
00006 // \author Kola Babalola
00007 
00008 //: Compute a mask where the regions in each slice of a 3D image bounded by contours are set to "on"
00009 #include <vil3d/vil3d_image_view.h>
00010 
00011 //: Compute a mask where the regions in each slice of a 3D image bounded by contours are set to "on".
00012 void vil3d_fill_boundary(vil3d_image_view<bool>& image);
00013 
00014 //: Follow the current boundary in the current slice.
00015 //  labelling boundary pixels and background pixels
00016 //  that border the boundary.
00017 void label_boundary_and_bkg(vil3d_image_view<int> &image,
00018                             int i,int j, int k, 
00019                             int boundary_label,
00020                             int background_label);
00021 
00022 //:  Fill interior of current boundary.
00023 void fill_boundary(vil3d_image_view<int> &image, int j, int k, int boundary_label, int background_label);
00024 
00025 //:  Reset background pixels to 0
00026 void reset_background(vil3d_image_view<int> &image, int background_label);
00027 
00028 
00029 #endif