Applies a median filter of rank to the input sequence X. Details
![]() |
X is the input signal to be filtered.
The number of elements in X must be greater than the rank, n > r ![]() If the number of elements in X is less than or equal to rank, the VI sets the output Filtered Data to an empty array and returns an error. |
![]() |
rank must be greater than or equal to zero. The default is 2. If rank is less than zero, the VI sets the output Filtered Data to an empty array and returns an error. |
![]() |
Filtered Data is the output array of filtered samples. The size of this array is the same as the input array X. |
![]() |
error returns any error or warning from the VI. Refer to Signal Processing Error Codes for more information about these conditions. |
If Y represents the output sequence Filtered Data, and if represents a subset of the input sequence X centered about the
element of X
,
and if the indexed elements outside the range of X equal zero, the Median Filter VI obtains the elements of Y using
for i = 0, 1, 2, , n-1,
where n is the number of elements in the input sequence X, and r is the filter rank.