Blur Raster
Overview
Raster blurring is a spatial filtering technique. It smooths raster data by applying weighted averages or other statistics to neighboring cells, reducing local high-frequency noise or detail.
- For imagery, blurring reduces noise, softens texture, and creates smoother transitions.
- For DEM or elevation rasters, blurring smooths local elevation changes and reduces the influence of outliers or isolated peaks.
Use Cases
Remote sensing imagery
- Remove random noise, such as sensor noise or compression noise.
- Smooth color transitions and improve visual appearance.
- Reduce excessive texture that may interfere with classification or analysis.
DEM or elevation data
- Smooth isolated peaks or pits.
- Preprocess DEMs to provide a more stable basis for slope, curvature, and related analysis.
- Generate softer shading for terrain visualization.
Other raster data
- Meteorological or environmental data: smooth local anomalies.
- Heatmaps or statistical rasters: reduce local fluctuations and emphasize overall trends.
Parameters
| Parameter | Description | Notes |
|---|---|---|
| Input raster file | Raster file to blur | Ensure that the input has the correct spatial reference and coordinate system to avoid spatial offset or distorted results. |
| Blur method | Method used to process neighboring cells | Options include smoothing filter, Gaussian filter, and median filter. |
| Boundary mode | Controls how neighboring cell values outside the raster boundary are handled during convolution | Common modes include constant fill, reflect, mirror, nearest, and wrap. The selected mode can strongly affect edge cells. |
| Constant value | Fixed value used to fill cells outside the raster extent when Boundary mode is set to constant fill | Usually defaults to 0; set it according to the background value or analysis requirement when needed. |
| Convolution factor | Coefficient used to normalize or scale the weighted sum from the convolution kernel | For smoothing kernels, it keeps the result value range close to the input. For sharpening or edge-detection kernels, the factor is often 1 or 0 to preserve high-frequency features. |
| Output path | Target directory for the result raster | An absolute path is recommended. Ensure that the directory exists and is writable. Avoid Chinese characters and special characters in paths for better cross-platform compatibility. |
| Output file name | Full result raster file name, including extension | The extension determines the output format, such as .tif for GeoTIFF or .img for ERDAS IMG. |
Steps
-
Start the tool
Open Spatial Analysis Tools and double-click Blur Raster to start the tool pane.
-
Select the input raster file
-
Choose the blur method and boundary mode
- Blur method: select
Smoothing filter, 5 x 5. - Boundary mode: select Reflect.
Blur methods
Method Core idea Noise type Edge preservation Complexity Typical use Smoothing filter Replaces the center cell with the neighborhood mean Acceptable for Gaussian noise Poor Low Smoothing continuous data Gaussian filter Weighted mean with Gaussian weights Good for Gaussian noise Better Medium Remote-sensing denoising and edge-aware smoothing Median filter Replaces the center cell with the neighborhood median Good for salt-and-pepper noise Good Medium Removing isolated noise in remote-sensing or medical imagery - Blur method: select
-
Set constant value and convolution factor
- Constant value: enter
50. - Convolution factor: enter
1.
- Constant value: enter
-
Specify the output location
-
Run the tool
- Click Run at the bottom of the pane and wait until the task list reports that the tool has succeeded.
Notes
Kernel size and blur strength
- Larger kernels create stronger blur but lose more spatial detail.
- Smaller kernels may not blur enough and may leave noise in the result.
Data type
- Suitable for continuous rasters such as imagery, elevation, and temperature.
- Not suitable for categorical rasters such as land-use classes because categories may be mixed.
- Integer rasters may need a floating-point output after blurring.
Boundary handling
- Boundary mode affects edge cells. Choose an appropriate mode to avoid abrupt edges.
Result interpretation
- Blurring reduces local variation and may hide small features.
- Excessive smoothing can introduce analysis errors or feature loss.