Inheritance diagram for CMatrix::

Public Methods | |
| CMatrix () | |
| CMatrix (int x, int y) | |
| virtual | ~CMatrix () |
| int | xmax () |
| Maximum defined x value (1 greater than the farthest element to the right). More... | |
| int | ymax () |
| Maximum defined y value (1 greater than the farthest element at the bottom). More... | |
| int | xmin () |
| Minimum defined x value (farthest left element). More... | |
| int | ymin () |
| Minimum defined y value (closest to top element). More... | |
| int | size () |
| Total number of elements in the matrix. More... | |
| int | x () |
| Total width of image. More... | |
| int | y () |
| Total height of image. More... | |
| T & | operator() (const unsigned int x, const unsigned int y) |
| Access an individual element using this. More... | |
| CMatrix< T > & | operator= (CMatrix< T > &RHS) |
| Used to copy one matrix to another using the assignment operator. More... | |
| double | interpolate (double x, double y) |
| Performs bilinear interpolation (given the four nearest neighbors). More... | |
| T & | operator[] (const unsigned int val) |
| Useful if you consider the matrix to be single dimensional by lining up the rows. More... | |
| void | Initialize (T val) |
| Stores 'val' at all locations in the matrix. More... | |
| void | SetRange (int xtop, int ytop, int xbottom, int ybottom, bool copy=true) |
| void | SetRange (CMatrix< T > OLD, bool copy=true) |
| Set the range based upon another matrix. More... | |
| void | SetSize (int x, int y) |
| This sets the minimum CMatrix coordinates to (0,0), and the max to x, y. More... | |
Public Attributes | |
| T * | m_CMatrix |
| The actual data that stores the matrix. Don't ruin the pointers. Generally, don't mess with this unless you really, really need to be clever. More... | |
| T * | zeroloc |
| The actual data that stores the matrix. Don't ruin the pointers. Generally, don't mess with this unless you really, really need to be clever. More... | |
Protected Attributes | |
| int | Xmin |
| int | Ymin |
| int | Xmax |
| int | Ymax |
| int | TotSize |
| int | TotX |
| int | TotY |
The only things defined in this class are the necessary files for creating 2 dimensional array type things. The Math functions are implemented separately in 'matrixarith' There are no requirements placed upon the type used by this class. It can hold anything.
Definition at line 14 of file CMatrix.
|
|||||||||
|
|
|
|||||||||||||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
Stores 'val' at all locations in the matrix.
|
|
|||||||||||||||||||
|
Set the range based upon another matrix.
|
|
||||||||||||||||||||||||||||||||||||||||
|
Set the maximum and minimum values for the range of the CMatrix; This will resize the CMatrix to the necessary size, adding or deleting the necessary amount. Please note that this requires the creation of more memory before the destruction of the old memory. If you don't care about copying the old values from the array, set copy=false. Otherwise, ignore it (don't put a value there) Definition at line 139 of file CMatrix. Referenced by SetRange(), convolve(), and operator=().
|
|
|||||||||||||||||||
|
This sets the minimum CMatrix coordinates to (0,0), and the max to x, y.
Definition at line 177 of file CMatrix. Referenced by GreyImage::Read(), convolve(), derivet(), derivex(), derivey(), and transpose().
|
|
|||||||||||||||||||
|
Performs bilinear interpolation (given the four nearest neighbors).
|
|
|||||||||||||||||||
|
Access an individual element using this.
|
|
||||||||||
|
Used to copy one matrix to another using the assignment operator.
|
|
||||||||||
|
Useful if you consider the matrix to be single dimensional by lining up the rows.
|
|
|||||||||
|
Total number of elements in the matrix.
Definition at line 34 of file CMatrix. Referenced by Initialize(), GreyImage::Read(), GreyImage::Write(), and convolve().
|
|
|||||||||
|
Total width of image.
Definition at line 36 of file CMatrix. Referenced by GreyImage::Write(), and dotprod().
|
|
|||||||||
|
Maximum defined x value (1 greater than the farthest element to the right).
Definition at line 26 of file CMatrix. Referenced by SetRange(), convolve(), derivet(), dotprod(), operator=(), samedimen(), and transpose().
|
|
|||||||||
|
Minimum defined x value (farthest left element).
Definition at line 30 of file CMatrix. Referenced by SetRange(), convolve(), derivet(), dotprod(), operator=(), samedimen(), and transpose().
|
|
|||||||||
|
Total height of image.
Definition at line 38 of file CMatrix. Referenced by GreyImage::Write(), and dotprod().
|
|
|||||||||
|
Maximum defined y value (1 greater than the farthest element at the bottom).
Definition at line 28 of file CMatrix. Referenced by SetRange(), convolve(), derivet(), dotprod(), operator=(), samedimen(), and transpose().
|
|
|||||||||
|
Minimum defined y value (closest to top element).
Definition at line 32 of file CMatrix. Referenced by SetRange(), convolve(), derivet(), dotprod(), operator=(), samedimen(), and transpose().
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
The actual data that stores the matrix. Don't ruin the pointers. Generally, don't mess with this unless you really, really need to be clever.
|
|
|||||
|
The actual data that stores the matrix. Don't ruin the pointers. Generally, don't mess with this unless you really, really need to be clever.
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001