Macros | Functions
vil_save.cxx File Reference
#include <cctype>
#include <cstring>
#include <string>
#include <iostream>
#include "vil_save.h"
#include <vxl_config.h>
#include <vil/vil_open.h>
#include <vil/vil_new.h>
#include <vil/vil_copy.h>
#include <vil/vil_pixel_format.h>
#include <vil/vil_image_resource.h>
#include <vil/vil_image_view.h>

Go to the source code of this file.

Macros

#define macro(ext, fmt)   else if ( ext_lower_case == "." #ext ) file_format = #fmt
 

Functions

bool vil_save (const vil_image_view_base &im, char const *filename, char const *file_format)
 Send vil_image to disk. More...
 
char const * vil_save_guess_file_format (char const *filename)
 Given a filename, guess the file format tag. More...
 
bool vil_save (const vil_image_view_base &i, char const *filename)
 save to file, deducing format from filename. More...
 
bool vil_save_image_resource (const vil_image_resource_sptr &ir, char const *filename, char const *file_format)
 Send vil_image to disk. More...
 
bool vil_save_image_resource (const vil_image_resource_sptr &ir, char const *filename)
 save to file, deducing format from filename. More...
 

Detailed Description

  Modifications
   23 Oct.2003 - Peter Vanroose - Added support for 64-bit int pixels

Definition in file vil_save.cxx.

Macro Definition Documentation

◆ macro

#define macro (   ext,
  fmt 
)    else if ( ext_lower_case == "." #ext ) file_format = #fmt

Function Documentation

◆ vil_save() [1/2]

bool vil_save ( const vil_image_view_base im,
char const *  filename,
char const *  file_format 
)

Send vil_image to disk.

Send a vil_image_view to disk, given filename.

Definition at line 30 of file vil_save.cxx.

◆ vil_save() [2/2]

bool vil_save ( const vil_image_view_base i,
char const *  filename 
)

save to file, deducing format from filename.

Send a vil_image_view to disk, deducing format from filename.

Definition at line 123 of file vil_save.cxx.

◆ vil_save_guess_file_format()

char const* vil_save_guess_file_format ( char const *  filename)

Given a filename, guess the file format tag.

The returned pointer may point into the filename string - so keep it valid.

Definition at line 80 of file vil_save.cxx.

◆ vil_save_image_resource() [1/2]

bool vil_save_image_resource ( const vil_image_resource_sptr ir,
char const *  filename,
char const *  file_format 
)

Send vil_image to disk.

Send vil_image_resource to disk.

Definition at line 129 of file vil_save.cxx.

◆ vil_save_image_resource() [2/2]

bool vil_save_image_resource ( const vil_image_resource_sptr ir,
char const *  filename 
)

save to file, deducing format from filename.

Save vil_image_resource to file, deducing format from filename.

Definition at line 148 of file vil_save.cxx.