Defines | Functions
contrib/mul/vil3d/file_formats/vil3d_meta_image_format.cxx File Reference

Reader/Writer for meta image format images. More...

#include "vil3d_meta_image_format.h"
#include <vul/vul_file.h>
#include <vil/vil_stream_fstream.h>
#include <vil3d/vil3d_image_view.h>
#include <vil3d/vil3d_property.h>
#include <vil3d/vil3d_image_resource.h>
#include <vil3d/vil3d_new.h>
#include <vil3d/vil3d_copy.h>
#include <vcl_algorithm.h>
#include <vcl_cstring.h>
#include <vcl_cstdlib.h>
#include <vcl_cstddef.h>
#include <vcl_iostream.h>

Go to the source code of this file.

Defines

#define read_data_of_type(type)

Functions

void vil3d_meta_image_swap16 (char *a, unsigned n)
void vil3d_meta_image_swap32 (char *a, unsigned n)
void vil3d_meta_image_swap64 (char *a, unsigned n)
vcl_ostream & operator<< (vcl_ostream &os, const vil3d_meta_image_header &header)
 Print out header.

Detailed Description

Reader/Writer for meta image format images.

Author:
Chris Wolstenholme - Imorphics Ltd This file contains classes for reading and writing meta image format images Three key components are * vil3d_meta_image_header: Structure to contain header information * vil3d_meta_image: Resource object which interfaces to the file, allowing reading and writing via the get_copy_image() and put_image() functions * vil3d_meta_image_format: Object to create an appropriate vil3d_meta_image

The main work of loading and saving happens in vil3d_meta_image

Definition in file vil3d_meta_image_format.cxx.


Define Documentation

#define read_data_of_type (   type)
Value:
vil3d_image_view< type > im = \
         vil3d_new_image_view_plane_k_j_i(ni, nj, nk, nplanes(), type()); \
  is->read(&im(0,0,0,0), ni * nj * nk * nplanes() * sizeof(type));

Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  os,
const vil3d_meta_image_header header 
)

Print out header.

Definition at line 588 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_swap16 ( char *  a,
unsigned  n 
) [inline]

Definition at line 36 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_swap32 ( char *  a,
unsigned  n 
) [inline]

Definition at line 44 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_swap64 ( char *  a,
unsigned  n 
) [inline]

Definition at line 53 of file vil3d_meta_image_format.cxx.