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

Reader/Writer for analyze format images. More...

#include "vil3d_analyze_format.h"
#include <vcl_cstring.h>
#include <vcl_cstdio.h>
#include <vcl_cstddef.h>
#include <vil/vil_stream_fstream.h>
#include <vil3d/vil3d_image_view.h>
#include <vil3d/vil3d_new.h>
#include <vil3d/vil3d_copy.h>
#include <vil3d/vil3d_property.h>
#include <vil3d/vil3d_image_resource.h>
#include <vsl/vsl_binary_explicit_io.h>
#include <vsl/vsl_indent.h>

Go to the source code of this file.

Defines

#define RD_AH_MAXHEADERSIZE   0xFFFF
#define WRITE(X)   do_write(bfs, &X, sizeof(X))
#define read_data_of_type(type)

Functions

void swap16_for_big_endian (char *a, unsigned n)
void swap32_for_big_endian (char *a, unsigned n)
void swap64_for_big_endian (char *a, unsigned n)
vcl_ostream & operator<< (vcl_ostream &os, const vil3d_analyze_header &header)
 Print out some parts of header.

Variables

const int ObligatorySize
const int OptionalSize

Detailed Description

Reader/Writer for analyze format images.

Author:
Tim Cootes - Manchester This file contains classes for reading and writing analyze format images Three key components are vil3d_analyze_header: Structure to contain header information vil3d_analyze_image: Resource object which interfaces to the file, allowing reading and writing via the get_copy_image() and put_image() functions vil3d_analyze_format: Object to create an appropriate vil3d_analyze_image

The main work of loading and saving happens in vil3d_analyze_image

Definition in file vil3d_analyze_format.cxx.


Define Documentation

#define RD_AH_MAXHEADERSIZE   0xFFFF

Definition at line 63 of file vil3d_analyze_format.cxx.

#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));
#define WRITE (   X)    do_write(bfs, &X, sizeof(X))

Definition at line 107 of file vil3d_analyze_format.cxx.


Function Documentation

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

Print out some parts of header.

Definition at line 439 of file vil3d_analyze_format.cxx.

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

Definition at line 34 of file vil3d_analyze_format.cxx.

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

Definition at line 42 of file vil3d_analyze_format.cxx.

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

Definition at line 51 of file vil3d_analyze_format.cxx.


Variable Documentation

const int ObligatorySize
Initial value:

Definition at line 65 of file vil3d_analyze_format.cxx.

const int OptionalSize
Initial value:

Definition at line 67 of file vil3d_analyze_format.cxx.