Declaration
TIEVisionMatrix = TIEVisionImage;
Description
This is an alias of
TIEVisionImage interface.
A matrix is an n-dimensional single-channel or multi-channel array. It can be used to store values, vectors, grayscale or color images, etc.
// Create a 3x3 matrix
const
sharpenKernel: array[0..2] of array[0..2] of single = ((-1, -1, -1), (-1, 8, -1), (-1, -1, -1));
var
k: TIEVisionMatrix;
i, j: integer;
l: PSingleArray;
begin
// convert the kernel to TIEVisionMatrix
k := IEVisionLib().createImage(3, 3, ievFLOAT32, 1);
for i := 0 to 2 do
begin
l := k.getScanline(i);
for j := 0 to 2 do
l[j] := sharpenKernel[i, j];
end;
...
end;