ApplyCompassKernel calculates the convolution of data in the array InData with one of the eight directional compass kernels (Kernel parameter 0 to 7, see figure below). The results are written into the array OutData which is automatically resized to match the size of InData. If Feedback is set to TRUE, the progress bar at the bottom of the DataLab main window indicates the progress of the calculation, if set to FALSE no visual feedback is provided.
The function returns the following error codes:
0 ... everything is OK, OutData has been filled by the convolution results
-1 ... invalid Kernel