Part 1: Intensity Transformations (Point Processing)
These techniques operate on a single pixel (
| Technique / Filter | Category | Mathematical Concept / Mechanism | Primary Purpose / Application |
|---|---|---|---|
| Image Negative | Linear | Reverses intensity levels. Used to enhance white/gray details embedded in large dark regions (e.g., medical X-rays). | |
| Log Transformation | Logarithmic | Expands a narrow range of dark input values while compressing higher-level values. Used to reveal hidden details (e.g., Fourier spectrum). | |
| Power-Law (Gamma) | Exponential | Lightens ( |
|
| Contrast Stretching (Min-Max) | Piecewise-Linear | Stretches a narrow intensity range to span a wider target range. Used to normalize images with poor illumination. | |
| Thresholding | Piecewise-Linear | Converts grayscale to binary (black and white) based on a threshold |
|
| Intensity-Level Slicing | Piecewise-Linear | Highlights a specific range of intensities |
Highlighting specific features of interest, such as masses in medical X-rays or bodies of water in satellite imagery. |
| Bit-Plane Slicing | Bitwise / Piecewise | Decomposes an 8-bit image into 8 binary planes (Bit 0 to Bit 7). The Most Significant Bit (MSB, Bit 7) contains the most visual data; the LSB (Bit 0) looks like noise. | Analyzing the importance of bits for image compression and steganography (hiding data in the LSB). |
| Histogram Equalization | Statistical / Global | (Maps pixels using the Cumulative Distribution Function of the histogram). |
Fully automatic contrast enhancement. Spreads out the most frequent intensity values to create a "flat" histogram, maximizing dynamic range. |
Part 2: Smoothing Spatial Filters (Neighborhood Processing)
These filters use a moving mask (e.g.,
| Technique / Filter | Category | Concept | Primary Purpose / Application | Kernel Matrix (Mask) Example |
|---|---|---|---|---|
| Box Filter (Averaging) | Linear Spatial | All mask coefficients are equal (e.g., all |
Blurring an image and reducing random noise. Drawback: Causes significant blurring of edges. |
|
| Weighted Average | Linear Spatial | Center mask coefficients have higher values than outer ones. | Smoothes the image while preserving slightly more detail/edges compared to a standard box filter. | |
| Median Filter | Order-Statistic (Nonlinear) | Replaces the center pixel with the median value of the neighborhood. | Excellent for removing impulse noise (salt-and-pepper noise) with considerably less blurring than linear filters. | N/A (Uses Sorting/Ranking) |
| Max Filter | Order-Statistic (Nonlinear) | Replaces the center pixel with the maximum value of the neighborhood. | Finds the brightest points in an image; effectively removes "pepper" (dark) noise. | N/A (Uses Sorting/Ranking) |
| Min Filter | Order-Statistic (Nonlinear) | Replaces the center pixel with the minimum value of the neighborhood. | Finds the darkest points in an image; effectively removes "salt" (bright) noise. | N/A (Uses Sorting/Ranking) |
Part 3: Sharpening Spatial Filters (Neighborhood Processing)
These filters use spatial differentiation to highlight rapid transitions in intensity, effectively sharpening edges and fine details.
| Technique / Filter | Category | Concept / Math | Primary Purpose / Application | Kernel Matrix (Mask) Example |
|---|---|---|---|---|
| Laplacian Filter | Linear Spatial (2nd Derivative) | Isotropic mask (e.g., center |
Highlights fine details and rapid intensity transitions. The result is usually added back to the original image to restore background tones. | (for composite, add 1 or -1 depending on center) |
| Unsharp Masking | Image Arithmetic | Subtracts a blurred version of the image from the original to create an edge mask, which is then added back to sharpen the image. | N/A (Subtracts a blurred image from the original) | |
| Highboost Filtering |
Image Arithmetic | Similar to Unsharp Masking, but multiplies the edge mask by a weight |
N/A (Uses Unsharp mask logic with a multiplier |
|
| Roberts Cross-Gradient |
Nonlinear Spatial (1st Derivative) | Uses |
Extracts edges by calculating the gradient magnitude. Very sensitive to noise due to its small mask size. | |
| Sobel Operator | Nonlinear Spatial (1st Derivative) | Uses |
Extracts edges. Provides a slight smoothing effect due to the |