Defines | Functions
contrib/mul/vil3d/vil3d_save.cxx File Reference
#include "vil3d_save.h"
#include <vcl_cstring.h>
#include <vcl_iostream.h>
#include <vxl_config.h>
#include <vil3d/vil3d_new.h>
#include <vil3d/vil3d_copy.h>
#include <vil/vil_pixel_format.h>
#include <vil3d/vil3d_image_resource.h>
#include <vil3d/vil3d_image_view.h>

Go to the source code of this file.

Defines

#define macro(ext, fmt)   else if (!vcl_strcmp(dot, "." #ext)) file_format = #fmt

Functions

bool vil3d_save (const vil3d_image_view_base &im, char const *filename, char const *file_format)
 Send vil3d_image to disk.
char const * vil3d_save_guess_file_format (char const *filename)
 Guess file format from filename.
bool vil3d_save (const vil3d_image_view_base &i, char const *filename)
 save to file, deducing format from filename.
bool vil3d_save_image_resource (const vil3d_image_resource_sptr &ir, char const *filename, char const *file_format)
 Send vil3d_image to disk.
bool vil3d_save_image_resource (const vil3d_image_resource_sptr &ir, char const *filename)
 save to file, deducing format from filename.
bool vil3d_save (const vil3d_image_view_base &im, float voxel_width_i, float voxel_width_j, float voxel_width_k, char const *filename)
 Send a vil3d_image_view to disk, deducing format from filename.

Detailed Description

Definition in file vil3d_save.cxx.


Define Documentation

#define macro (   ext,
  fmt 
)    else if (!vcl_strcmp(dot, "." #ext)) file_format = #fmt

Function Documentation

bool vil3d_save ( const vil3d_image_view_base im,
char const *  filename,
char const *  file_format 
)

Send vil3d_image to disk.

Send a vil3d_image_view to disk, given filename.

Definition at line 24 of file vil3d_save.cxx.

bool vil3d_save ( const vil3d_image_view_base i,
char const *  filename 
)

save to file, deducing format from filename.

Send a vil3d_image_view to disk, deducing format from filename.

Definition at line 91 of file vil3d_save.cxx.

bool vil3d_save ( const vil3d_image_view_base im,
float  voxel_width_i,
float  voxel_width_j,
float  voxel_width_k,
char const *  filename 
)

Send a vil3d_image_view to disk, deducing format from filename.

Utility function, allowing definition of voxel widths in header info.

Definition at line 119 of file vil3d_save.cxx.

char const* vil3d_save_guess_file_format ( char const *  filename)

Guess file format from filename.

Definition at line 65 of file vil3d_save.cxx.

bool vil3d_save_image_resource ( const vil3d_image_resource_sptr ir,
char const *  filename,
char const *  file_format 
)

Send vil3d_image to disk.

Send vil3d_image_resource to disk.

Definition at line 97 of file vil3d_save.cxx.

bool vil3d_save_image_resource ( const vil3d_image_resource_sptr ir,
char const *  filename 
)

save to file, deducing format from filename.

Save vil3d_image_resource to file, deducing format from filename.

Definition at line 111 of file vil3d_save.cxx.