contrib/mul/vil3d/vil3d_save.h
Go to the documentation of this file.
00001 // This is mul/vil3d/vil3d_save.h
00002 #ifndef vil3d_save_h_
00003 #define vil3d_save_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \author    Ian Scott
00010 
00011 #include <vil3d/vil3d_fwd.h>
00012 
00013 //: Send a vil3d_image_view to disk, deducing format from filename
00014 // \relatesalso vil3d_image_view
00015 bool vil3d_save(const vil3d_image_view_base &, char const* filename);
00016 
00017 //: Send a vil3d_image_view to disk, given filename
00018 // \relatesalso vil3d_image_view
00019 bool vil3d_save(const vil3d_image_view_base &, char const* filename, char const* file_format);
00020 
00021 //: Send a vil3d_image_view to disk, deducing format from filename
00022 //  Utility function, allowing definition of voxel widths in header info.
00023 // \relatesalso vil3d_image_view
00024 bool vil3d_save(const vil3d_image_view_base & im, 
00025                 float voxel_width_i,
00026                 float voxel_width_j,
00027                 float voxel_width_k,
00028                 char const* filename);
00029 
00030 
00031 //: Send vil3d_image_resource to disk.
00032 // \relatesalso vil3d_image_resource
00033 bool vil3d_save_image_resource(const vil3d_image_resource_sptr &ir, char const* filename,
00034                              char const* file_format);
00035 
00036 //: Save vil3d_image_resource to file, deducing format from filename.
00037 // \relatesalso vil3d_image_resource
00038 bool vil3d_save_image_resource(const vil3d_image_resource_sptr &ir, char const* filename);
00039 
00040 //: Guess file format from filename.
00041 char const *vil3d_save_guess_file_format(char const* filename);
00042 
00043 #endif // vil3d_save_h_