Splitting and Merging for Active Contours: Plug-and-Play
Abstract
:1. Introduction
1.1. Background
- Merging: When two distinct contours (e.g., two objects) approach and eventually collide, the AC model must be capable of merging them into a single contour.
- Splitting:
- ■
- Object Splitting: An object can split into multiple contours (e.g., during cell mitosis). The AC should effectively handle this process, ensuring a clear separation into distinct contours.
- ■
- Self-loop: During evolution, the AC may form small loops within itself, which are undesirable artefacts. These loops typically arise due to the improper handling of contour evolution or issues in the energy minimisation process.
1.2. Reviewing Splitting and Merging Methods
1.2.1. GACs
1.2.2. Non-GACs
Grid-Based
Force-Based
Computational Geometry-Based
Distance-Based
Snake Interpolation-Based
1.3. Motivation and Innovation
2. Materials and Methods
2.1. Fully 4-Connected Interpolation
2.1.1. Transformation of 4-Connected Interpolation Problem to Error Concealment
2.1.2. Mathematical Notations
2.1.3. Constrained Tikhonov Regularisation Model
- Data Fidelity (): The reconstructed or filled-in data should be as close as possible to the known data such as neighbouring pixels, frames, or signals.
- Smoothness (Regularisation) (): The reconstructed data should avoid abrupt changes or inconsistencies, ensuring a smooth appearance.
2.1.4. Post-Processing
2.2. Splitting
2.3. Merging
2.3.1. Extracting Internal Contours
2.3.2. Merging External Contours
- The locations of snakes in the initial image are manually defined.
- The boundaries are detected using the AC model.
- The resultant boundaries are converted into fully 4-connected contours.
- These fully 4-connected contours are passed through the splitting algorithm, where contours with fewer than 50 points, identified as self-loops, are removed.
- The merging algorithm then processes the remaining contours to identify and merge collided contours.
- Finally, the output contour from the merging algorithm serves as the initial positions for the snakes in the next image, and the process is repeated.
3. Results
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
AC | Active contour |
CT | Computed Tomography |
GVF | Gradient vector flow |
LP | Long Path |
SP | Short Path |
Appendix A
Algorithm A1: Post-Processing Algorithm |
1: Forming 2: Rounding the values of the members of P 3: For all samples of 4: Calculate D 5: If 6: If 7: Add between and in 8: Else 9: Add between and in 10: End 11: End 12: End 13: Removing the successive and repetitious members of P |
Algorithm A2: Splitting Algorithm |
1: For each 2: While there is an intersection point in the 3: Extracting an intersection point such as 4: 5: Removing from 6: 7: End 8: 9: End |
Algorithm A3: Merging internal contours |
1: Extracting intersection points between and 2: Ordering intersection points clockwise or counterclockwise 3: For j = 1 to (number of intersection points − 1) 4: If and are successive and not adjacent 5: 6: 7: If 8: 9: Elseif 10: 11: Elseif 12: 13: Elseif 14: 15: Elseif 16: 17: Else 18: 19: End 20: End |
Algorithm A4: Merging of external contour |
1: Extracting intersection points between and 2: Finding a pair of crossing point, and that has largest SP 3: 4: 5: If 6: 7: Elseif 8: 9: Elseif 10: 11: Elseif 12: 13: Elseif 14: 15: Else 16: 17: End |
References
- Jing, J.; Liu, S.; Wang, G.; Zhang, W.; Sun, C. Recent advances on image edge detection: A comprehensive review. Neurocomputing 2022, 503, 259–271. [Google Scholar] [CrossRef]
- Kass, M.; Witkin, A.; Terzopoulos, D. Snakes: Active contour models. Int. J. Comput. Vis. 1988, 1, 321–331. [Google Scholar] [CrossRef]
- Peng, S.; Jiang, W.; Pi, H.; Li, X.; Bao, H.; Zhou, X. Deep snake for real-time instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020. [Google Scholar]
- Caselles, V.; Kimmel, R.; Sapiro, G. Geodesic active contours. In Proceedings of the Fifth International Conference on Computer Vision, Cambridge, MA, USA, 20–23 June 1995; pp. 694–699. [Google Scholar]
- Malladi, R.; Sethian, J.A.; Vemuri, B.C. Shape modeling with front propagation: A level set approach. IEEE Trans. Pattern Anal. Mach. Intell. 1995, 17, 158–175. [Google Scholar] [CrossRef]
- Sapiro, G.; Tannenbaum, A. Affine invariant scale-space. Int. J. Comput. Vis. 1993, 11, 25–44. [Google Scholar] [CrossRef]
- Osher, S.; Sethian, J.A. Fronts propagating with curvature-dependent speed: Algorithms based on Hamilton-Jacobi formulations. J. Comput. Phys. 1988, 79, 12–49. [Google Scholar] [CrossRef]
- McInerney, T.; Terzopoulos, D. T-snakes: Topology adaptive snakes. Med. Image Anal. 2000, 4, 73–91. [Google Scholar] [CrossRef]
- Xu, C.; Pham, D.L.; Prince, J.L. Image segmentation using deformable models. Handb. Med. Imaging 2000, 2, 129–174. [Google Scholar]
- Chan, T.F.; Vese, L.A. Active contours without edges. IEEE Trans. Image Process. 2001, 10, 266–277. [Google Scholar] [CrossRef]
- Samson, C.; Blanc-Féraud, L.; Zerubia, J.; Aubert, G. A level set model for image classification. In Proceedings of the International Conference on Scale-Space Theories in Computer Vision, Corfu, Greece, 26–27 September 1999; pp. 306–317. [Google Scholar]
- Yezzi, A.; Tsai, A.; Willsky, A. A statistical approach to snakes for bimodal and trimodal imagery. In Proceedings of the Seventh IEEE International Conference on Computer Vision, Kerkyra, Greece, 20–27 September 1999; pp. 898–903. [Google Scholar]
- Delingette, H.; Montagnat, J. Shape and topology constraints on parametric active contours. Comput. Vis. Image Underst. 2001, 83, 140–171. [Google Scholar] [CrossRef]
- Bischoff, S.; Kobbelt, L. Snakes with topology control. Vis. Comput. 2003, 20, 217–228. [Google Scholar]
- Bischoff, S.; Kobbelt, L.P. Parameterization-free active contour models with topology control. Vis. Comput. 2004, 20, 217–228. [Google Scholar]
- Oliveira, A.; Ribeiro, S.; Farias, R.; Esperança, C. Loop snakes: Snakes with enhanced topology control. In Proceedings of the 17th Brazilian Symposium on Computer Graphics and Image Processing, Curitiba, Brazil, 20 October 2004; pp. 364–371. [Google Scholar]
- Oliveira, A.; Ribeiro, S.; Esperanca, C.; Giraldi, G. Loop snakes: The generalized model. In Proceedings of the Ninth International Conference on Information Visualisation, London, UK, 6–8 July 2005; pp. 975–980. [Google Scholar]
- Zheng, S. An intensive restraint topology adaptive snake model and its application in tracking dynamic image sequence. Inf. Sci. 2010, 180, 2940–2959. [Google Scholar] [CrossRef]
- Ivins, J.; Porrill, J. Active region models for segmenting textures and colours. Image Vis. Comput. 1995, 13, 431–438. [Google Scholar] [CrossRef]
- Ďurikovič, R.; Kaneda, K.; Yamashita, H. Dynamic contour: A texture approach and contour operations. Vis. Comput. 1995, 11, 277–289. [Google Scholar] [CrossRef]
- Wong, Y.; Yuen, P.C.; Tong, C.S. Segmented snake for contour detection. Pattern Recognit. 1998, 31, 1669–1679. [Google Scholar] [CrossRef]
- Choi, W.-P.; Lam, K.-M.; Siu, W.-C. An adaptive active contour model for highly irregular boundaries. Pattern Recognit. 2001, 34, 323–331. [Google Scholar] [CrossRef]
- Lefèvre, S.; Vincent, N. Real time multiple object tracking based on active contours. In Proceedings of the International Conference Image Analysis and Recognition, Porto, Portugal, 29 September–1 October 2004; pp. 606–613. [Google Scholar]
- Li, C.; Liu, J.; Fox, M.D. Segmentation of external force field for automatic initialization and splitting of snakes. Pattern Recognit. 2005, 38, 1947–1960. [Google Scholar] [CrossRef]
- Xingfei, G.; Jie, T. An automatic active contour model for multiple objects. In Proceedings of the 16th International Conference on Pattern Recognition, Quebec City, QC, Canada, 11–15 August 2002; pp. 881–884. [Google Scholar]
- Chuang, C.-H.; Lie, W.-N. Automatic snake contours for the segmentation of multiple objects. In Proceedings of the 2001 IEEE International Symposium on Circuits and Systems, Sydney, NSW, Australia, 6–9 May 2001; pp. 389–392. [Google Scholar]
- De Berg, M.; Van Kreveld, M.; Overmars, M.; Schwarzkopf, O.C. Computational geometry. In Computational Geometry; Springer: Berlin/Heidelberg, Germany, 2000; pp. 1–17. [Google Scholar]
- Cohen, J.D.; Lin, M.C.; Manocha, D.; Ponamgi, M. I-collide: An interactive and exact collision detection system for large-scale environments. In Proceedings of the 1995 Symposium on Interactive 3D Graphics, Monterey, CA, USA, 9–12 April 1995; pp. 189–ff. [Google Scholar]
- Smith, C.E.; Schaub, H. Efficient polygonal intersection determination with applications to robotics and vision. In Proceedings of the 2005 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS 2005), Edmonton, AB, Canada, 2–6 August 2005; pp. 3890–3895. [Google Scholar]
- Perrin, D.P.; Ladd, A.M.; Kavraki, L.E.; Howe, R.D.; Cannon, J.W. Fast intersection checking for parametric deformable models. In Proceedings of the Medical Imaging, San Diego, CA, USA, 13–17 February 2005; pp. 1468–1474. [Google Scholar]
- Doğan, G.; Morin, P.; Nochetto, R.H. A variational shape optimization approach for image segmentation with a Mumford–Shah functional. SIAM J. Sci. Comput. 2008, 30, 3028–3049. [Google Scholar] [CrossRef]
- Stoeter, S.A.; Papanikolopoulos, N. Closed dynamic contour models that split and merge. In Proceedings of the ICRA’04: 2004 IEEE International Conference on Robotics and Automation, New Orleans, LA, USA, 26 April–1 May 2004; pp. 3883–3888. [Google Scholar]
- Pauš, P.; Beneš, M. Algorithm for topological changes of parametrically described curves. In Proceedings of the ALGORITMY 2009: 18th Conference on Scientific Computing, Vysoké Tatry, Slovakia, 15–20 March 2009; pp. 176–184. [Google Scholar]
- Araki, S.; Yokoya, N.; Iwasa, H.; Takemura, H. Splitting of active contour models based on crossing detection for extraction of multiple objects. Syst. Comput. Jpn. 1997, 28, 34–42. [Google Scholar] [CrossRef]
- Araki, S.; Yokoya, N.; Takemura, H. Real-time tracking of multiple moving objects using split-and-merge contour models based on crossing detection. Syst. Comput. Jpn. 1999, 30, 25–33. [Google Scholar] [CrossRef]
- Ngoi, K.P.; Jia, J. An active contour model for colour region extraction in natural scenes. Image Vis. Comput. 1999, 17, 955–966. [Google Scholar] [CrossRef]
- Nakaguro, Y.; Makhanov, S.S.; Dailey, M.N. Numerical experiments with cooperating multiple quadratic snakes for road extraction. Int. J. Geogr. Inf. Sci. 2011, 25, 765–783. [Google Scholar] [CrossRef]
- Rochery, M.; Jermyn, I.H.; Zerubia, J. Higher order active contours. Int. J. Comput. Vis. 2006, 69, 27–42. [Google Scholar] [CrossRef]
- Mikula, K.; Urbán, J. New fast and stable Lagrangean method for image segmentation. In Proceedings of the 2012 5th International Congress on Image and Signal Processing (CISP), Chongqing, China, 16–18 October 2012; pp. 688–696. [Google Scholar]
- Balažovjech, M.; Mikula, K.; Petrášová, M.; Urbán, J. Lagrangean method with topological changes for numerical modelling of forest fire propagation. In Proceedings of the ALGORITMY 2012: 19th Conference on Scientific Computing, Vysoké Tatry, Slovakia, 9–14 September 2015; pp. 42–52. [Google Scholar]
- Benninghoff, H.; Garcke, H. Efficient image segmentation and restoration using parametric curve evolution with junctions and topology changes. SIAM J. Imaging Sci. 2014, 7, 1451–1483. [Google Scholar] [CrossRef]
- Benninghoff, H.; Garcke, H. Image Segmentation Using Parametric Contours with Free Endpoints. IEEE Trans. Image Process. 2016, 25, 1639–1648. [Google Scholar] [CrossRef]
- Ji, L.; Yan, H. Loop-free snakes for highly irregular object shapes. Pattern Recognit. Lett. 2002, 23, 579–591. [Google Scholar] [CrossRef]
- Ji, L.; Yan, H. Robust topology-adaptive snakes for image segmentation. Image Vis. Comput. 2002, 20, 147–164. [Google Scholar] [CrossRef]
- Nakhmani, A.; Tannenbaum, A. Self-crossing detection and location for parametric active contours. IEEE Trans. Image Process. 2012, 21, 3150–3156. [Google Scholar] [CrossRef]
- Lashgari, M.; Rabbani, H.; Plonka, G.; Selesnick, I. Reconstruction of Connected Digital Lines Based on Constrained Regularization. IEEE Trans. Image Process. 2022, 31, 5613–5628. [Google Scholar] [CrossRef]
- Lashgari, M.; Shahmoradi, M.; Rabbani, H.; Swain, M. Missing surface estimation based on modified tikhonov regularization: Application for destructed dental tissue. IEEE Trans. Image Process. 2018, 27, 2433–2446. [Google Scholar] [CrossRef]
- Lashgari, M.; Rabbani, H.; Shahmorad, M.; Swain, M. A fast and accurate dental micro-CT image denoising based on total variation modeling. In Proceedings of the 2015 IEEE Workshop on Signal Processing Systems (SiPS), Hangzhou, China, 14–16 October 2015; pp. 1–5. [Google Scholar]
- Shahmoradi, M.; Lashgari, M.; Rabbani, H.; Qin, J.; Swain, M. A comparative study of new and current methods for dental micro-CT image denoising. Dentomaxillofac. Radiol. 2016, 45, 20150302. [Google Scholar] [CrossRef] [PubMed]
- Gharleghi, R.; Adikari, D.; Ellenberger, K.; Webster, M.; Ellis, C.; Sowmya, A.; Ooi, S.; Beier, S. Annotated computed tomography coronary angiogram images and associated data of normal and diseased arteries. Sci. Data 2023, 10, 128. [Google Scholar] [CrossRef]
Categories | Sub-Categories | Methods | Topological Handling | Drawbacks | |||
---|---|---|---|---|---|---|---|
Merging | Splitting | ||||||
Multiple Object | Self-Crossing | ||||||
Pre-Formation | Post-Formation | ||||||
ACs | Grid-based | McInerney and Terzopoulos [8], Oliveira et al. [16,17] | √ | √ | √ | - Not detecting all intersections due to discretisation [44]. - Deal only with rigid deformation of snakes [44]. | |
Bischoff and Kobbelt [14,15] | √ | √ | |||||
Zheng [18] | √ | √ | |||||
Delingette and Montagnat [13] | √ | √ | √ | - Intersection detection is restricted by the size of grid [13]. | |||
Force-based | Ivins and Porrill [19], Wong et al. [21] | √ | - Not always successful prevention of self-loop [45]. - Restricting snakes’ dynamic and convergence [45]. | ||||
Ďurikovič et al. [20], Choi et al. [22] | √ | √ | - Unable to deal with complex objects due to limiting speed of snake’s points to equal value [13]. | ||||
Lefèvre and Vincent [23] | √ | - False positive in detecting intersection points. - Limiting external energy. | |||||
Li et al. [24], Xingfei and Jie [25], Chuang and Lie [26] | √ | - Time consuming due to prior need to GVF field before snake deformation [26]. | |||||
Computational geometry-based | Smith and Schaub [29], Perrin et al. [30], Doğan et al. [31], Stoeter and Papanikolopoulos [32] | √ | √ | √ | - Difficult implementation due to existence of different special cases [45]. | ||
Distance-based | Pauš and Beneš [33] | √ | √ | √ | - False positive or negative in detecting intersection points. | ||
Araki et al. [34] | √ | √ | |||||
Araki et al. [35] | √ | √ | √ | ||||
Ngoi and Jia [36] | √ | √ | |||||
Nakaguro and Makhanov [37] | √ | √ | √ | ||||
Lefèvre and Vincent [23] | √ | ||||||
Mikula et al. [39,40] | √ | √ | - False positive or negative in detecting intersection points. - Intersection detection is restricted by the size of the grid. | ||||
Benninghoff and Garcke [41,42] | √ | √ | √ | ||||
Snake interpolation-based | Ji and Yan [43] | √ | √ | - False negative and positive. | |||
Ji and Yan [44] | √ | √ | √ | - Linear interpolation. - False negative and positive. | |||
Nakhmani and Tannenbaum [45] | √ | √ | - False positive. | ||||
GACs | Edge-based | Caselles et al. [4], Malladi et al. [5] | √ | √ | √ | - Difficulties in admitting imposition of arbitrary geometric or topological constraints [8] and adding user-defined external force. - Susceptible to noise, low gradient or boundary gap [9]. - High execution time [24]. | |
Region-based | Chan and Vese [10], Samson et al. [11], Yezzi et al. [12] | √ | √ | √ | - Supervised usage or pre-specified number of regions [24]. - High execution time [24]. |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Lashgari, M.; Banerjee, A.; Rabbani, H. Splitting and Merging for Active Contours: Plug-and-Play. Mathematics 2025, 13, 991. https://doi.org/10.3390/math13060991
Lashgari M, Banerjee A, Rabbani H. Splitting and Merging for Active Contours: Plug-and-Play. Mathematics. 2025; 13(6):991. https://doi.org/10.3390/math13060991
Chicago/Turabian StyleLashgari, Mojtaba, Abhirup Banerjee, and Hossein Rabbani. 2025. "Splitting and Merging for Active Contours: Plug-and-Play" Mathematics 13, no. 6: 991. https://doi.org/10.3390/math13060991
APA StyleLashgari, M., Banerjee, A., & Rabbani, H. (2025). Splitting and Merging for Active Contours: Plug-and-Play. Mathematics, 13(6), 991. https://doi.org/10.3390/math13060991