Skip to main content

Neighborhood and Window Operations

  • Chapter
  • First Online:
Automating the Analysis of Spatial Grids

Part of the book series: Geotechnologies and the Environment ((GEOTECH,volume 6))

Abstract

When processing spatial grids, it is often necessary to preprocess them to improve the results of later stages. Preprocessing may be to remove noise, to smooth over abrupt variations, to identify edges, or to fill gaps. In this chapter, we discuss neighborhood and window operations that may be used for these purposes. Smoothing can be carried out using a variety of windowing operations: the boxcar, Gaussian, and median filters are most commonly used. Because the boxcar filter is subject to ringing artifacts, we recommend the use of either the Gaussian filter (to mitigate abrupt changes) or the median filter (to mitigate the impact of noise). A matched filter may be used to extract specific shapes from a spatial grid but requires that you know the exact shape and orientation beforehand. Directional smoothing is commonly achieved using a filter bank of oriented filters. Separability is a concern, however. We discuss a couple of edge filtering techniques and point out the use of median filters in speckle removal. Morphological operations for dilation and erosion are described and the use of combinations of morphological operations for denoising and gap filling described. Finally, we discuss skeletonization and thinning algorithms.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The direction of an edge can be obtained from the Sobel filter as \({\tan }^{-1}({G}_{y}/{G}_{x})\). Similarly, we can compute the LoG in the x and y directions separately and compute the orientation of the edges.

  2. 2.

    QuickSelect.java in edu.ou.asgbook.filters

  3. 3.

    If the window weights are not symmetric, you have to flip the weights about the axis of symmetry before computing the Fourier transform. Other than this prefiltering step, the rest of the discussion holds.

  4. 4.

    Specifically, in the spatial domain, we do not compute results when more than half the window would be missing. This prevents us from having smoothed data for Mexico or Cuba. The frequency-domain pads the data with zero beyond the boundaries, and so we get incorrect values near the southern boundary of the image but reasonable results on the northern boundary (where a population density of zero is a reasonable assumption). Note in particular the smoothed data corresponding to Cuba.

References

  • Canny J (1986) A computational approach to edge detection. IEEE Trans Pattern Anal Mach Intell 8:679–714

    Article  Google Scholar 

  • Charalampidis D (2009) Efficient directional Gaussian smoothers. IEEE Trans Geosci Remote Sens Lett 6:383–387

    Article  Google Scholar 

  • Cooley JW, Tukey JW (1965) An algorithm for the machine calculation of complex fourier series. Math Comput 19:297–301

    Article  Google Scholar 

  • Coppin PR, Bauer ME (1996) Digital change detection in forest ecosystems with remote sensing imagery. Remote Sens Rev 13(3–4):207–234

    Article  Google Scholar 

  • Frigo M, Johnson S (1998) FFTW: an adaptive software architecture for the FFT. In: International conference on acoustics, speech and signal processing, Seattle. IEEE Service Center, pp 1381–1384

    Google Scholar 

  • Hilditch C (1969) Linear skeletons from square cupboards. In: Meltzer B, Michie D (eds) Machine intelligence 4. Edinburgh University Press, Edinburgh, pp 403–420

    Google Scholar 

  • Kitamoto A (2002) Spatio-temporal data mining for typhoon image collection. J Intell Inf Syst 19:25–41

    Article  Google Scholar 

  • Lakshmanan V (2004) A separable filter for directional smoothing. IEEE Geosci Remote Sens Lett 1(3):192–195

    Article  Google Scholar 

  • Lakshmanan V, Hondl K, Rabin R (2009) An efficient, general-purpose technique for identifying storm cells in geospatial images. J Ocean Atmos Tech 26(3):523–37

    Article  Google Scholar 

  • Pitas I, Venetsanopoulos N (1986) Edge detectors based on non-linear filters. IEEE Trans Pattern Anal Mach Intell 8(4):538–550

    Article  Google Scholar 

  • Press W, Flannery B, Teukolsky S, Vetterling W (1988) Numerical recipes in C, the art of scientific computing. Cambridge University Press, Cambridge

    Google Scholar 

  • Scambos TA, Dutkiewicz MJ, Wilson JC, Bindschadler RA (1992) Application of image cross-correlation to the measurement of glacier velocity using satellite image data. Remote Sens Environ 42(3):177–186

    Article  Google Scholar 

  • Wolfson MM, Forman BE, Hallowell RG, Moore MP (1999) The growth and decay storm tracker. In: 8th conference on aviation, Dallas. American Meteorological Society, pp 58–62

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer Science+Business Media Dordrecht.

About this chapter

Cite this chapter

Lakshmanan, V. (2012). Neighborhood and Window Operations. In: Automating the Analysis of Spatial Grids. Geotechnologies and the Environment, vol 6. Springer, Dordrecht. https://doi.org/10.1007/978-94-007-4075-4_5

Download citation

  • DOI: https://doi.org/10.1007/978-94-007-4075-4_5

  • Published:

  • Publisher Name: Springer, Dordrecht

  • Print ISBN: 978-94-007-4074-7

  • Online ISBN: 978-94-007-4075-4

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics