*settings-panel: Vector Processing - Normalized Median Test.*

**Normalized Median Test**

These are the settings for the normalized median test proposed by Jerry Westerweel and Fulvio Scarano (Experiments in Fluids (2005) 39: 1096-1100).

For the i=1,...,8 neighbouring vectors of the vector in question, i=0, consider the eight residual values r_{i}=|d_{i}-d_{m}|. d_{i} is the displacement of the eight neighbouring vectors in one direction, and d_{m} is the median of those displacements. The median r_{m} of the eight residuals r_{i} is used to normalize the residual of the displacement in question, r_{0}=(d_{0}-d_{m})/r_{m}.

The threshold for the normalized residual, r_{0} can be set in the first text field. All vectors that have a larger residual in one or the other direction than specified are invalidated. This does not mean to change the displacement data, but to set the flag in the fifth column to -1.

The noise level (next text field) basically prevents a division by zero, if the median of the residuals, rm, happens to be zero. This value is added to rm before the division. In the above mentioned publication, 2.0 for the threshold, and 0.1 for the noise level are recommended, universal values to start with.