skip to main content
research-article

Generation of Spatial Orders and Space-Filling Curves

Published: 01 June 2015 Publication History

Abstract

Space-filling curves have been found useful for many applications in diverse fields. A space-filling curve is a path in a 2<sup>r</sup>&#x00D7;2<sup>r</sup> raster domain, which visits each location exactly once. In mathematical terms, space-filling curves linearize a 2D integer space, bijectively mapping the space to the integer line. An algorithm is presented, which generates a large number of space-filling curves/spatial orders. Functions are derived such that the code of each location can be calculated from its coordinates and, conversely, a location code can be decoded to yield the coordinates. The algorithm first generates generate 4&#x00D7;4 spatial orders; they subsequently may be scaled up to any desired domain of size 2<sup>r</sup> &#x00D7; 2<sup>r</sup>. The underlying theory of the algorithm, the processes for scaling up, encoding, and decoding are described in detail. The curves are generated as a set of incongruent curves, followed, if required, by the sets of associated congruent curves. A number of space-filling curves are illustrated.

References

[1]
T. Ouni, A. Lassoued, and M. Abid, “Adapted scan based lossless image compression,” in Proc. SIP, 2011, pp. 82–91.
[2]
G. Bhatnagar, Q. M. J. Wu, and B. Raman, “Image and video encryption based on dual space-filling curves,” Comput. J., vol. 55, no. 6, pp. 667–685, 2012.
[3]
R. Amirtharajan and J. B. B. Rayappan, “An intelligent chaotic embedding approach to enhance stego-image quality,” Inf. Sci., vol. 193, pp. 115–124, Jun. 2012.
[4]
T. Koga and N. Suetake, “Image coarsening by using space-filling curve for decomposition-based image enhancement,” J. Vis. Commun. Image Represent., vol. 24, no. 7, pp. 806–818, 2013.
[5]
J. K. Lawder and P. J. H. King, “Using space-filling curves for multi-dimensional indexing,” in Proc. 17th BNCOD, in Lecture Notes in Computer Science, vol. 1832. Berlin, Germany: Springer-Verlag, 2000, pp. 20–35.
[6]
M. F. Mokbel and W. G. Aref, “Irregularity in high-dimensional space-filling curves,” Distrib. Parallel Databases, vol. 29, no. 3, pp. 217–238, 2011.
[7]
Y. Zarai and S. Rakib, “Hilbert space-filling by piecewise-linear index transformation,” IEEE Signal Process. Lett., vol. 15, pp. 717–720, Nov. 2008. 10.1109/LSP.2008.2002706.
[8]
K.-L. Chung, Y.-Y. Huang, and Y.-W. Liu, “Efficient algorithms for coding Hilbert curve of arbitrary-sized image and application to window query,” Inf. Sci., vol. 177, no. 10, pp. 2130–2151, 2007.
[9]
M. Ahmed and S. Bokhari, “Mapping with space filling surfaces,” IEEE Trans. Parallel Distrib. Syst., vol. 18, no. 9, pp. 1258–1269, Sep. 2007.
[10]
J.-M. Wierum, “Logarithmic path-length in space-filling curves,” in Proc. Can. Conf. Comput. Geometry, 2002, pp. 22–26.
[11]
X. Liu, “Four alternative patterns of the Hilbert curve,” Appl. Math. Comput., vol. 147, no. 3, pp. 741–752, 2004.
[12]
L. J. Stocco and G. Schrack, “On spatial orders and location codes,” IEEE Trans. Comput., vol. 58, no. 3, pp. 424–432, Mar. 2009.
[13]
L. Stocco and G. Schrack, “Integer dilation and contraction for quadtrees and octrees,” in Proc. IEEE Pacific Rim Conf. Commun., Comput., Signal Process. (PACRIM), Victoria, BC, Canada, May 1995, pp. 426–428.
[14]
H. Haverkort and F. van Walderveen, “Locality and bounding-box quality of two-dimensional space-filling curves,” Comput. Geometry, vol. 43, no. 2, pp. 131–147, 2010.
[15]
G. Peano, “Sur une courbe, qui remplit toute une aire plane,” Math. Ann., vol. 36, no. 1, pp. 157–160, 1890.
[16]
D. Hilbert, “Über die stetige Abbildung einer Linie auf ein Flächenstück,” Math. Ann., vol. 38, pp. 459–460, 1897.
[17]
H. L. Lebesgue, Leçons sur L’intégration et la Recherche des Fonctions Primitives. Paris, France: Gauthier-Villars, 1904, pp. 44–45.
[18]
H. Sagan, Space-Filling Curves. New York, NY, USA: Springer-Verlag, 1994.
[19]
G. M. Morton, “A computer oriented geodetic data base; and a new technique in file sequencing,” IBM Ltd., Ottawa, ON, Canada, Tech. Rep., Mar. 1966.
[20]
M. Bader, Space-Filling Curves: An Introduction With Applications in Scientific Computing. Berlin, Germany: Springer-Verlag, 2013, p. 278.
[21]
X. Liu and G. F. Schrack, “A new ordering strategy applied to spatial data processing,” Int. J. Geograph. Inf. Sci., vol. 12, no. 1, pp. 3–22, 1998.
[22]
G. Schrack and X. Liu, “The spatial U-order and some of its mathematical characteristics,” in Proc. IEEE Pacific Rim Conf. Commun., Comput., Signal Process. (PACRIM), Victoria, BC, Canada, May 1995, pp. 416–419.
[23]
X. Liu, “On the ordering of multiattribute data in information retrieval systems,” M.S. thesis, Dept. Elect. Comput. Eng., Univ. British Columbia, Vancouver, BC, USA, 1996. [Online]. Available: https://cIRcle.ubc.ca/handle/2429/4787
[24]
C. Savage, “A survey of combinatorial Gray codes,” SIAM Rev., vol. 39, no. 4, pp. 605–629, 1997.
[25]
X. Liu and G. F. Schrack, “A heuristic approach for constructing symmetric Gray codes,” Appl. Math. Comput., vol. 155, no. 1, pp. 55–63, 2004.
[26]
X. Liu and G. Schrack, “Encoding and decoding the Hilbert order,” Softw., Pract. Exper., vol. 26, no. 12, pp. 1335–1346, 1996.
[27]
R. Hamming, Coding and Information Theory, 2nd ed. Englewood Cliffs, NJ, USA: Prentice-Hall, 1986.
[28]
A. Gilat, MATLAB: An Introduction With Applications, 2nd ed. New York, NY, USA: Wiley, ISBN 978-0-471-69420-5.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image IEEE Transactions on Image Processing
IEEE Transactions on Image Processing  Volume 24, Issue 6
June 2015
288 pages

Publisher

IEEE Press

Publication History

Published: 01 June 2015

Author Tags

  1. Gray-order
  2. Spatial order
  3. space-filling curve
  4. location code
  5. Z-order
  6. U-order
  7. X-order

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 03 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

View options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media