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 |
Reader/Writer for analyze format images.
The main work of loading and saving happens in vil3d_analyze_image
Definition in file vil3d_analyze_format.cxx.
#define RD_AH_MAXHEADERSIZE 0xFFFF |
Definition at line 63 of file vil3d_analyze_format.cxx.
#define read_data_of_type | ( | type | ) |
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.
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.
const int ObligatorySize |
sizeof(vil3d_analyze_header::Key) + sizeof(vil3d_analyze_header::Dimensions)
Definition at line 65 of file vil3d_analyze_format.cxx.
const int OptionalSize |
ObligatorySize + sizeof(vil3d_analyze_header::History)
Definition at line 67 of file vil3d_analyze_format.cxx.