Universal High-Pass, Low-Pass, Band-Pass, and Band-Stop Filter Functions

Resource Overview

Implementation of a universal filtering function supporting high-pass, low-pass, band-pass, and band-stop filtering, incorporating ideal, Butterworth, and exponential filter types. The implemented functions will be applied to perform low-pass filtering on Figure 1 (lena_noise.bmp) and high-pass filtering on Figure 2 (lena_blur.bmp), followed by pseudo-color enhancement for both processed images.

Detailed Documentation

This text describes the implementation of a universal filter function capable of handling high-pass, low-pass, band-pass, and band-stop filtering operations. The implementation includes multiple filter types such as ideal filters, Butterworth filters, and exponential filters, each with distinct frequency response characteristics. The filter function will utilize frequency domain processing through Fast Fourier Transform (FFT) and inverse FFT operations, with proper frequency mask generation based on the selected filter type and parameters. The implemented functions will be applied to perform low-pass filtering on Figure 1 (lena_noise.bmp) to reduce noise while preserving image contours, and high-pass filtering on Figure 2 (lena_blur.bmp) to enhance edge details and sharpen blurred regions. After filtering, both processed images will undergo pseudo-color enhancement using color mapping techniques to highlight subtle details and create more visually distinctive representations through enhanced color contrast.