Abstract
We present a robust method for parsing the content of hand-drawn cadastral maps in order to obtain high-resolution, digitized assemblies of larger regions from individual maps. The parsing phase involves solving a challenging background grid detection plem. We exploit the geometry of detected grids for stitching overlapping map images. A novel method for computing geometric compatibilities between non-overlapping map pieces is also introduced. It is shown to be important since existing chromatic compatibility measures are not as useful for hand-drawn maps. Assembly of maps involves solving an arbitrary-boundary jigsaw puzzle problem with non-overlapping pieces of the same rectangular shape. It corresponds to finding a maximum spanning graph within a multigraph whose edge weights are the piece compatibilities. Since the problem is NP-hard, we develop a polynomial time approximation algorithm that involves two distinct greedy decisions at each iteration. In contrast to existing evaluation metrics for fixed-boundary jigsaw puzzles, we present an \(F_1\)-score based evaluation scheme for the arbitrary-boundary jigsaw problem that evaluates relative placements of pieces instead of absolute locations. On a testing set of 218 images of 109 cadastral maps comprising 15 different map assembly problems, we achieve a high average \(F_1\)-score of 0.88. Results validate our compatibility measure as well as the two-stage greedy nature of our method. An ablation study isolates the importance of individual modules of the developed pipeline.
Similar content being viewed by others
References
Group, W.B.: Pakistan - Punjab Land Records Management and Information Systems Project (English). Technical report, World Bank Group (July 2017). http://documents.worldbank.org/curated/en/488611499886532325/ Accessed 2022-12-16
Iftikhar, T., Khan, N.: Background grid extraction from historical cadastral maps. Int. J. Document Anal. Recog. (2023) https://doi.org/10.1007/s10032-023-00457-4
Kim, N.W., Lee, J., Lee, H., Seo, J.: Accurate segmentation of land regions in historical cadastral maps. J. Vis. Commun. Image Represent. 25(5), 1262–1274 (2014)
Takahashi, Y., Fei, L., Ohyama, W., Wakabayashi, T., Kimura, P.: Direction estimation using square lattice and cadastral map assembling. IEEJ Trans. Electron. Inform. Syst. 130(12), 2150–21588 (2010)
Cho, T.S., Avidan, S., Freeman, W.T.: A probabilistic image jigsaw puzzle solver. In: Computer Vision and Pattern Recognition (CVPR), 2010 IEEE Conference On, pp. 183–190 (2010). IEEE
Pomeranz, D., Shemesh, M., Ben-Shahar, O.: A fully automated greedy square jigsaw puzzle solver. In: Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference On, pp. 9–16 (2011). IEEE
Sholomon, D., David, O., Netanyahu, N.S.: A genetic algorithm-based solver for very large jigsaw puzzles. In: The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2013)
Sholomon, D., David, O.E., Netanyahu, N.S.: A generalized genetic algorithm-based solver for very large jigsaw puzzles of complex types. In: AAAI, pp. 2839–2845 (2014)
Gallagher, A.C.: Jigsaw puzzles with pieces of unknown orientation. In: Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference On, pp. 382–389 (2012). IEEE
Son, K., Hays, J., Cooper, D.B.: Solving square jigsaw puzzles with loop constraints. In: European Conference on Computer Vision, pp. 32–46 (2014). Springer
Son, K., Hays, J., Cooper, D.B., et al.: Solving small-piece jigsaw puzzles by growing consensus. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1193–1201 (2016)
Demaine, E.D., Demaine, M.L.: Jigsaw puzzles, edge matching, and polyomino packing: connections and complexity. Graphs Comb. 23(1), 195–208 (2007)
Yu, R., Russell, C., Agapito, L.: Solving jigsaw puzzles with linear programming. In: Proceedings of the British Machine Vision Conference 2016, BMVC 2016, York, UK, September 19-22, 2016 (2016)
Bosboom, J., Demaine, E.D., Demaine, M.L., Hesterberg, A., Manurangsi, P., Yodpinyanee, A.: Even \(1\times n\) edge-matching and jigsaw puzzles are really hard. J. Inform. Process. 25, 682–694 (2017)
Freeman, H., Garder, L.: Apictorial jigsaw puzzles: the computer solution of a problem in pattern recognition. IEEE Trans. Electron. Comput. 2, 118–127 (1964)
Burdea, B., Wolfson, H.J.: Solving jigsaw puzzles by a robot. IEEE Trans. Robot. Autom. 5(6), 752–764 (1989)
Goldberg, D., Malon, C., Bern, M.: A global approach to automatic solution of jigsaw puzzles. In: Proceedings of the Eighteenth Annual Symposium on Computational Geometry, pp. 82–87 (2002). ACM
Nielsen, T.R., Drewsen, P., Hansen, K.: Solving jigsaw puzzles using image features. Pattern Recogn. Lett. 29(14), 1924–1933 (2008)
Andaló, F.A., Taubin, G., Goldenstein, S.: Solving image puzzles with a simple quadratic programming formulation. In: 2012 25th SIBGRAPI Conference on Graphics, Patterns and Images, pp. 63–70 (2012). IEEE
Prim, R.C.: Shortest connection networks and some generalizations. The Bell Syst. Tech. J. 36(6), 1389–1401 (1957)
Wolfson, H., Schonberg, E., Kalvin, A., Lamdan, Y.: Solving jigsaw puzzles by computer. Ann. Op. Res. 12(1), 51–64 (1988)
Webster, R.W., LaFollette, P.S., Stafford, R.L.: Isthmus critical points for solving jigsaw puzzles in computer vision. IEEE Trans. Syst. Man Cybern. 21(5), 1271–1278 (1991)
Kosiba, D.A., Devaux, P.M., Balasubramanian, S., Gandhi, T.L., Kasturi, K.: An automatic jigsaw puzzle solver. In: Pattern Recognition, 1994. Vol. 1-Conference A: Computer Vision & Image Processing., Proceedings of the 12th IAPR International Conference On, vol. 1, pp. 616–618 (1994). IEEE
Chung, M.G., Fleck, M.M., Forsyth, D.A.: Jigsaw puzzle solver using shape and color. In: ICSP’98. 1998 Fourth International Conference on Signal Processing, vol. 2, pp. 877–880 (1998). IEEE
Yao, F.-H., Shao, G.-F.: A shape and image merging technique to solve jigsaw puzzles. Pattern Recogn. Lett. 24(12), 1819–1835 (2003)
Toyama, F., Fujiki, Y., Shoji, K., Miyamichi, J.: Assembly of puzzles using a genetic algorithm. In: Pattern Recognition, 2002. Proceedings. 16th International Conference On, vol. 4, pp. 389–392 (2002). IEEE
Alajlan, N.: Solving square jigsaw puzzles using dynamic programming and the Hungarian procedure. Am. J. Appl. Sci. 6(11), 1941 (2009)
Paikin, G., Tal, A.: Solving multiple square jigsaw puzzles with missing pieces. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4832–4839 (2015)
Guerroui, N., Séridi, H.: Solving computational square jigsaw puzzles with a novel pairwise compatibility measure. J. King Saud Univ. Comput. Inform. Sci. 32(8), 928–939 (2020)
Markaki, S., Panagiotakis, C.: Jigsaw puzzle solving techniques and applications: a survey. The Visual Computer, 1–17 (2022)
Yılmaz, S., Nabiyev, V.V.: Comprehensive survey of the solving puzzle problems. Comput. Sci. Rev. 50, 100586 (2023)
Lukáš, O., Garcia, S.: Deep generative models to extend active directory graphs with honeypot users. In: Proceedings of the 2nd International Conference on Deep Learning Theory and Applications, pp. 140–147. SCITEPRESS - Science and Technology Publications, Setúbal, Portugal (2021)
Viglino, J.-M., Guigues, L.: Cadastre map assembling: a puzzle game resolution. In: Proceedings of Sixth International Conference on Document Analysis and Recognition, pp. 1235–1239 (2001)
Liu, F., Ohyama, W., Wakabayashi, T., Kimura, F.: Automatic assembling of cadastral maps based on generalized hough transformation. In: Bunke, H., Spitz, A.L. (eds.) Document Analysis Systems VII, pp. 593–603. Springer, Berlin, Heidelberg (2006)
Liu, F., Ohyama, W., Wakabayashi, T., Kimura, F.: Improvement of cadastral map assembling based on ght. In: Proceedings of IAPR Conference on Machine Vision Applications, MVA 2007. Proceedings of IAPR Conference on Machine Vision Applications, MVA 2007, pp. 571–574 (2007). 10th IAPR Conference on Machine Vision Applications, MVA 2007 ; Conference date: 16-05-2007 Through 18-05-2007
von Gioi, R.G., Jakubowicz, J., Morel, J.-M., Randall, G.: LSD: A fast line segment detector with a false detection control. IEEE Trans. Pattern Anal. Mach. Intell. 32(4), 722–732 (2010)
Hamid, N., Khan, N.: LSM: perceptually accurate line segment merging. J. Electron. Imaging 25(6), 061620 (2016)
Khan, S., Aslam, A., Ahmad, S., Rehan, A., Gul, A., Alam, U., Naqvi, H., Bukhari, Z., Iqbal, I., Sherdil, K.: Mapping rural Pakistan: bottlenecks and solutions. International Growth Centre, London (2011)
Acknowledgements
The authors are thankful to Sohaib Khan for providing access to the dataset [38] and for introducing this paper’s research problems to the corresponding author.
Funding
This work was supported by HEC-NRPU grant 8329 titled “DoCMap: Digitization of Cadastral Maps”.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors disclosed no possible Conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Iftikhar, T., Khan, N. Hand-drawn cadastral map parsing, stitching and assembly via jigsaw puzzles. IJDAR (2024). https://doi.org/10.1007/s10032-024-00465-y
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s10032-024-00465-y