Aller au contenu principal

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

ParameterDescriptionNotes
Input raster fileRaster file to blurEnsure that the input has the correct spatial reference and coordinate system to avoid spatial offset or distorted results.
Blur methodMethod used to process neighboring cellsOptions include smoothing filter, Gaussian filter, and median filter.
Boundary modeControls how neighboring cell values outside the raster boundary are handled during convolutionCommon modes include constant fill, reflect, mirror, nearest, and wrap. The selected mode can strongly affect edge cells.
Constant valueFixed value used to fill cells outside the raster extent when Boundary mode is set to constant fillUsually defaults to 0; set it according to the background value or analysis requirement when needed.
Convolution factorCoefficient used to normalize or scale the weighted sum from the convolution kernelFor 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 pathTarget directory for the result rasterAn 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 nameFull result raster file name, including extensionThe extension determines the output format, such as .tif for GeoTIFF or .img for ERDAS IMG.

Steps

  1. Start the tool

    Open Spatial Analysis Tools and double-click Blur Raster to start the tool pane.

  2. Select the input raster file

  3. Choose the blur method and boundary mode

    • Blur method: select Smoothing filter, 5 x 5.
    • Boundary mode: select Reflect.

    Blur methods

    MethodCore ideaNoise typeEdge preservationComplexityTypical use
    Smoothing filterReplaces the center cell with the neighborhood meanAcceptable for Gaussian noisePoorLowSmoothing continuous data
    Gaussian filterWeighted mean with Gaussian weightsGood for Gaussian noiseBetterMediumRemote-sensing denoising and edge-aware smoothing
    Median filterReplaces the center cell with the neighborhood medianGood for salt-and-pepper noiseGoodMediumRemoving isolated noise in remote-sensing or medical imagery
  4. Set constant value and convolution factor

    • Constant value: enter 50.
    • Convolution factor: enter 1.
  5. Specify the output location

  6. 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.