This small example shows how to use base functions (creation, access to element, display, determinant, trace).
ex_simple.c
Size: 808 octets
This example shows how to apply mathematical operations to a matrix (matrix product, addition).
ex_math.c
Size: 1133 octets
In this examples, a matrix is filled the values contained in a file (.mat). This example needs the file gauss3x3.mat (see after).
ex_io1.c
Size: 673 octets
This file contains the definition of a matrix. It can be easily edited with an editor like notepad, emacs, ...
gauss3x3.mat
Size: 93 octets
This example presents how to save a matrix in a file.
ex_io2.c
Size: 937 octets
This example presents how to load/save an image file (TARGA) from/to three matrixes (red,green,blue).
ex_graph1.c
Size: 542 octets
This example apply a transformation (translation,rotation,zoom) to a TARGA image file.
ex_graph2.c
Size: 746 octets
This example contains the step to adopt if you wants to intercept error management of the unit Matrix2D.
ex_errors.c
Size: 356 octets
This file contains all the examples.
examples.zip
Size: 3557 octets
This file is a set of several 3x3 matrix that can be used for the convolution operation:
- diff3x3.mat
- sepdiff3x3.mat
- gauss3x3.mat
- frei-chen3x3.mat
- prewitt3x3.mat
- roberts3x3.mat
- sobel3x3.mat
mat.zip
Size: 1106 octets