摘要 |
A median filtering apparatus and related method for finding out a median from 2r+1 input data, which includes 2(r+1) comparators, a counter, a circuit to obtain a minimum, a register, a state machine, and an adder. 2r+1 comparators of the comparators compare input data with a first predetermined value and compare the 2r+1 input data with an output value of the register. The counter counts the number of input data that are not larger than the first predetermined value or the output value of the register of the input data. The circuit finds out a minimum value of the input data that are larger than the first predetermined value or the output value of the register of the input data and a second predetermined value. The remaining one comparator of the 2(r+1) comparators compares the number counted by the counter with "r". |