Pixel Classification Algorithms for Noise Removal and Signal Preservation in Low Pass Filtering