SpatialVariance

Declaration: SpatialVariance (KSize: integer; InData: TDouble2DArray; var OutData: TDouble2DArray; Feedback: boolean): integer;
SpatialVariance calculates for each cell of the array InData the local variance of matrix cells in a quadratic region with an edge length of KSize. The results are written to 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 ImageLab 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 variances
-1 ... KSize is even
-2 ... KSize is greater than the shorter side of the InData array
-3 ... KSize is less than 3


Last Update: 2017-Mai-26