SpatialPercentileFilter calculates for each cell of the array InData the Probpercentile of the matrix cells in a quadratic region with an edge length of KSize. The parameter Prob specifies the probability of the percentile (valid range: 0..100). 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
1 ... KSize is even
2 ... KSize is greater than the shorter side of the InData array
3 ... KSize is less than 3
