Classes | Functions
contrib/mul/vimt/vimt_image.h File Reference

A base class for images of any dimension and type. More...

#include <vcl_string.h>
#include <vcl_iosfwd.h>
#include <vcl_vector.h>
#include <vsl/vsl_fwd.h>

Go to the source code of this file.

Classes

class  vimt_image
 A base class for images of any dimension and type. More...

Functions

void vsl_add_to_binary_loader (const vimt_image &b)
 Allows derived class to be loaded by base-class pointer.
void vsl_b_write (vsl_b_ostream &bfs, const vimt_image &b)
 Binary file stream output operator for class reference.
void vsl_b_read (vsl_b_istream &bfs, vimt_image &b)
 Binary file stream input operator for class reference.
vcl_ostream & operator<< (vcl_ostream &os, const vimt_image &b)
 Stream output operator for class reference.
vcl_ostream & operator<< (vcl_ostream &os, const vimt_image *b)
 Stream output operator for class pointer.
void vsl_print_summary (vcl_ostream &os, const vimt_image &im)
 Print class to os.

Detailed Description

A base class for images of any dimension and type.

Author:
Tim Cootes

Definition in file vimt_image.h.


Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  os,
const vimt_image b 
)

Stream output operator for class reference.

Definition at line 71 of file vimt_image.cxx.

vcl_ostream& operator<< ( vcl_ostream &  os,
const vimt_image b 
)

Stream output operator for class pointer.

Definition at line 82 of file vimt_image.cxx.

void vsl_add_to_binary_loader ( const vimt_image b)

Allows derived class to be loaded by base-class pointer.

A loader object exists which is invoked by calls of the form "vsl_b_read(bfs,base_ptr);". This loads derived class objects from the disk, places them on the heap and returns a base class pointer. In order to work the loader object requires an instance of each derived class that might be found. This function gives the model class to the appropriate loader.

Definition at line 98 of file vimt_image.cxx.

void vsl_b_read ( vsl_b_istream bfs,
vimt_image b 
)

Binary file stream input operator for class reference.

Definition at line 64 of file vimt_image.cxx.

void vsl_b_write ( vsl_b_ostream bfs,
const vimt_image b 
)

Binary file stream output operator for class reference.

Definition at line 57 of file vimt_image.cxx.

void vsl_print_summary ( vcl_ostream &  os,
const vimt_image im 
)

Print class to os.

Definition at line 91 of file vimt_image.cxx.