Reader/Writer for a volume made up of a list of slices. More...
#include "vil3d_slice_list.h"#include <vcl_cstring.h>#include <vcl_cstdlib.h>#include <vcl_algorithm.h>#include <vul/vul_file.h>#include <vul/vul_file_iterator.h>#include <vil/vil_load.h>#include <vil/vil_copy.h>#include <vil3d/vil3d_image_view.h>#include <vil3d/vil3d_slice.h>#include <vil3d/file_formats/vil3d_dicom.h>Go to the source code of this file.
Defines | |
| #define | macro(type) |
Functions | |
| void | parse_globbed_filenames (const vcl_string &input, vcl_vector< vcl_string > &filenames) |
| void | parse_multiple_filenames (const vcl_string &input, vcl_vector< vcl_string > &filenames) |
| vil3d_image_resource_sptr | vil3d_slice_list_to_volume (const vcl_vector< vil_image_resource_sptr > &images) |
| Create a volume from a list of matching 2D slices. | |
Reader/Writer for a volume made up of a list of slices.
Definition in file vil3d_slice_list.cxx.
| #define macro | ( | type | ) |
{ \
vil3d_image_view< type > vv(ni, nj, nk, nplanes()); \
for (unsigned k=0; k<nk; ++k) { \
vil_image_view< type > src(slices_[k+k0]->get_view(i0, ni, j0, nj)); \
vil_image_view< type > dest(vil3d_slice_ij(vv, k)); \
vil_copy_reformat(src, dest); } \
return new vil3d_image_view< type >(vv); \
}
| void parse_globbed_filenames | ( | const vcl_string & | input, |
| vcl_vector< vcl_string > & | filenames | ||
| ) |
Definition at line 28 of file vil3d_slice_list.cxx.
| void parse_multiple_filenames | ( | const vcl_string & | input, |
| vcl_vector< vcl_string > & | filenames | ||
| ) |
Definition at line 74 of file vil3d_slice_list.cxx.
| vil3d_image_resource_sptr vil3d_slice_list_to_volume | ( | const vcl_vector< vil_image_resource_sptr > & | ) |
Create a volume from a list of matching 2D slices.
If the slices do not match (in size, type etc) a null ptr will be returned.
Definition at line 143 of file vil3d_slice_list.cxx.
1.7.5.1