by DonaldFisk · 5y ago · 0 comments
kernel: array[-3..3,-3..3] of real;
is a 7x7 array. It has negative indices, e.g. x := kernel[-3,-3];
See https://www.tutorialspoint.com/pascal/pascal_arrays.htmSometimes you want negative indices, e.g. when performing a convolution on an image with a kernel.