contrib/mul/vimt/vimt_save.h
Go to the documentation of this file.
00001 // This is mul/vimt/vimt_save.h
00002 #ifndef vimt_save_h_
00003 #define vimt_save_h_
00004 //:
00005 // \file
00006 // \author Ian Scott, Kevin de Souza
00007 // \note Adapted from vimt3d_save
00008 
00009 
00010 #include <vcl_string.h>
00011 #include <vil/vil_fwd.h>
00012 class vimt_transform_2d;
00013 class vimt_image_2d;
00014 
00015 //: Save values from a transform to an image resource.
00016 // The transform will be from world co-ordinates in metres to image co-ordinates (or mm if requested).
00017 void vimt_save_transform(vil_image_resource_sptr &ir,
00018                          const vimt_transform_2d& trans,
00019                          bool use_millimetres =false);
00020 
00021 //: Save image from path into given image (forcing to given pixel type)
00022 bool vimt_save(const vcl_string& path,
00023                const vimt_image_2d& image,
00024                bool use_millimetres =false);
00025 
00026 #endif // vimt_save_h_
00027