Patent ID: 8903190

Claim:
A median filtering apparatus, comprising: a difference array calculating unit to form a data set comprising N pieces of data (x[i], 0≦i≦N−1), and to calculate a difference array diff[i][j] between one data x[i] (0≦i≦N−1) among the N pieces of data and one data x[j] among the N pieces of data; a summing unit to sum component values (gte[j]=Σidiff[i][j], 0≦j≦N−1) for columns of the difference array to obtain sum values for the columns of the difference array; an index calculating unit to calculate an index of a column which has a smallest sum value among the sum values which are greater than or equal to a preset value; and a median value determination unit to determine a median value from the N pieces of data, based on the calculated index, wherein the calculated index is a value representing a column number among the N columns of the difference array.