Fill in contour bounded regions in slices of 3D image. More...
#include "vil3d_fill_boundary.h"
#include <vil3d/vil3d_image_view.h>
#include <vcl_vector.h>
#include <vcl_stack.h>
#include <vil3d/vil3d_convert.h>
#include <vil3d/algo/vil3d_threshold.h>
Go to the source code of this file.
Functions | |
void | vil3d_fill_boundary (vil3d_image_view< bool > &bool_image) |
Compute a mask where the regions in each slice of a 3D image bounded by contours are set to "on". | |
void | label_boundary_and_bkg (vil3d_image_view< int > &image, int i, int j, int k, int boundary_label, int background_label) |
Follow the current boundary in the current slice. | |
void | fill_boundary (vil3d_image_view< int > &image, int j, int k, int boundary_label, int background_label) |
Fill interior of current boundary. | |
void | reset_background (vil3d_image_view< int > &image, int background_label) |
Reset background pixels to 0. |
Fill in contour bounded regions in slices of 3D image.
Definition in file vil3d_fill_boundary.cxx.
void fill_boundary | ( | vil3d_image_view< int > & | image, |
int | j, | ||
int | k, | ||
int | boundary_label, | ||
int | background_label | ||
) |
Fill interior of current boundary.
Definition at line 126 of file vil3d_fill_boundary.cxx.
void label_boundary_and_bkg | ( | vil3d_image_view< int > & | image, |
int | i, | ||
int | j, | ||
int | k, | ||
int | boundary_label, | ||
int | background_label | ||
) |
Follow the current boundary in the current slice.
labeling boundary pixels and background pixels that border the boundary.
Definition at line 58 of file vil3d_fill_boundary.cxx.
void reset_background | ( | vil3d_image_view< int > & | image, |
int | background_label | ||
) |
Reset background pixels to 0.
Definition at line 184 of file vil3d_fill_boundary.cxx.
void vil3d_fill_boundary | ( | vil3d_image_view< bool > & | image | ) |
Compute a mask where the regions in each slice of a 3D image bounded by contours are set to "on".
Definition at line 14 of file vil3d_fill_boundary.cxx.