next up previous contents
Next: 5.2 Projection functions Up: 5. The VMask class Previous: 5. The VMask class   Contents

5.1 Constructors

There are three constructors for VIMask and VDMask:

VIMask( int xsize, int ysize );
VIMask( int xsize, int ysize, 
  int scale, int offset, ... );
VIMask( const char *name );
VIMask();
VDMask( int xsize, int ysize );
VDMask( int xsize, int ysize, 
  double scale, double offset, ... );
VDMask( const char *name );
VDMask();

The first form creates an empty matrix, with the specified dimensions; the second form initialises a matrix from a varargs list; the third form reads the matrix from the named file. The final form makes a mask object with no contents yet.



John Cupitt 2005-04-11