Watershed (image processing)

In the study of image processing, a watershed is a transformation defined on a grayscale image. The name refers metaphorically to a geological watershed, or drainage divide, which separates adjacent drainage basins. The watershed transformation treats the image it operates upon like a topographic map, with the brightness of each point representing its height, and finds the lines that run along the tops of ridges.

There are different technical definitions of a watershed. In graphs, watershed lines may be defined on the nodes, on the edges, or hybrid lines on both nodes and edges. Watersheds may also be defined in the continuous domain.[1] There are also many different algorithms to compute watersheds. Watershed algorithms are used in image processing primarily for object segmentation purposes, that is, for separating different objects in an image. This allows for counting the objects or for further analysis of the separated objects.

Definitions

In geology, a watershed is a divide that separates adjacent catchment basins.

Watershed by flooding

The idea was introduced in 1979 by S. Beucher and C. Lantuéjoul.[2] The basic idea consisted of placing a water source in each regional minimum in the relief, to flood the entire relief from sources, and build barriers when different water sources meet. The resulting set of barriers constitutes a watershed by flooding. A number of improvements, collectively called Priority-Flood, have since been made to this algorithm.[3]

Watershed by topographic distance

Intuitively, a drop of water falling on a topographic relief flows towards the "nearest" minimum. The "nearest" minimum is that minimum which lies at the end of the path of steepest descent. In terms of topography, this occurs if the point lies in the catchment basin of that minimum. The previous definition does not verify this condition.

Watershed by the drop of water principle

Intuitively, the watershed is a separation of the regional minima from which a drop of water can flow down towards distinct minima. A formalization of this intuitive idea was provided in [4] for defining a watershed of an edge-weighted graph.

Inter-pixel watershed

S. Beucher and F. Meyer introduced an algorithmic inter-pixel implementation of the watershed method,[5] given the following procedure:

  1. Label each minimum with a distinct label. Initialize a set S with the labeled nodes.
  2. Extract from S a node x of minimal altitude F, that is to say F(x) = min{F(y)|y ∈ S}. Attribute the label of x to each non-labeled node y adjacent to x, and insert y in S.
  3. Repeat Step 2 until S is empty.

Topological watershed

Previous notions focus on catchment basins, but not to the produced separating line. The topological watershed was introduced by M. Couprie and G. Bertrand in 1997,[6] and beneficiate of the following fundamental property. A function W is a watershed of a function F if and only if W ≤ F and W preserves the contrast between the regional minima of F; where the contrast between two regional minima M1 and M2 is defined as the minimal altitude to which one must climb in order to go from M1 to M2.[7] An efficient algorithm is detailed in the paper.[8]

Watershed algorithm

Different approaches may be employed to use the watershed principle for image segmentation.

  • Local minima of the gradient of the image may be chosen as markers, in this case an over-segmentation is produced and a second step involves region merging.
  • Marker based watershed transformation make use of specific marker positions which have been either explicitly defined by the user or determined automatically with morphological operators or other ways.

Meyer's flooding algorithm

One of the most common watershed algorithms was introduced by F. Meyer in the early 1990s, though a number of improvements, collectively called Priority-Flood, have since been made to this algorithm,[9] including variants suitable for datasets consisting of trillions of pixels.[10]

The algorithm works on a gray scale image. During the successive flooding of the grey value relief, watersheds with adjacent catchment basins are constructed. This flooding process is performed on the gradient image, i.e. the basins should emerge along the edges. Normally this will lead to an over-segmentation of the image, especially for noisy image material, e.g. medical CT data. Either the image must be pre-processed or the regions must be merged on the basis of a similarity criterion afterwards.

  1. A set of markers, pixels where the flooding shall start, are chosen. Each is given a different label.
  2. The neighboring pixels of each marked area are inserted into a priority queue with a priority level corresponding to the gradient magnitude of the pixel.
  3. The pixel with the lowest priority level is extracted from the priority queue. If the neighbors of the extracted pixel that have already been labeled all have the same label, then the pixel is labeled with their label. All non-marked neighbors that are not yet in the priority queue are put into the priority queue.
  4. Redo step 3 until the priority queue is empty.

The non-labeled pixels are the watershed lines.

Example of a marker-supported watershed transformation for a population of pharmaceutical pellets. Watershed lines are superimposed in black on the CT image stack.[11]

Optimal spanning forest algorithms (watershed cuts)

Watersheds as optimal spanning forest have been introduced by Jean Cousty et al.[12] They establish the consistency of these watersheds: they can be equivalently defined by their “catchment basins” (through a steepest descent property) or by the “dividing lines” separating these catchment basins (through the drop of water principle). Then they prove, through an equivalence theorem, their optimality in terms of minimum spanning forests. Afterward, they introduce a linear-time algorithm to compute them. It is worthwhile to note that similar properties are not verified in other frameworks and the proposed algorithm is the most efficient existing algorithm, both in theory and practice.

Graph cuts

In 2007, C. Allène et al.[13] established links relating Graph Cuts to optimal spanning forests. More precisely, they show that when the power of the weights of the graph is above a certain number, the cut minimizing the graph cuts energy is a cut by maximum spanning forest.

Shortest-path forests

The image foresting transform (IFT) of Falcao et al.[14] is a procedure for computing shortest path forests. It has been proved by J. Cousty et al.[15] that when the markers of the IFT corresponds to extrema of the weight function, the cut induced by the forest is a watershed cut.

Random walker

The random walker algorithm is a segmentation algorithm solving the combinatorial Dirichlet problem, adapted to image segmentation by L. Grady in 2006.[16] In 2011, C. Couprie et al. proved that when the power of the weights of the graph converge toward infinity, the cut minimizing the random walker energy is a cut by maximum spanning forest.[17]

Hierarchies

A hierarchical watershed transformation converts the result into a graph display (i.e. the neighbor relationships of the segmented regions are determined) and applies further watershed transformations recursively. See [18] for more details. A theory linking watershed to hierarchical segmentations has been developed in[19]

Notes

  1. ^ L. Najman and M. Schmitt. Watershed of a continuous function. In Signal Processing (Special issue on Mathematical Morphology.), Vol. 38 (1994), pages 99–112
  2. ^ Serge Beucher and Christian Lantuéj workshop on image processing, real-time edge and motion detection (1979). http://cmm.ensmp.fr/~beucher/publi/watershed.pdf
  3. ^ Barnes, R., Lehman, C., Mulla, D., 2014. Priority-flood: An optimal depression-filling and watershed-labeling algorithm for digital elevation models. Computers & Geosciences 62, 117–127. doi:10.1016/j.cageo.2013.04.024
  4. ^ J. Cousty, G. Bertrand, L. Najman and M. Couprie. Watershed Cuts: Minimum Spanning Forests and the Drop of Water Principle, IEEE Transactions on Pattern Analysis and Machine Intelligence 31(8) pp. 1362-1374, 2009,
  5. ^ Serge Beucher and Fernand Meyer. The morphological approach to segmentation: the watershed transformation. In Mathematical Morphology in Image Processing (Ed. E. R. Dougherty), pages 433–481 (1993).
  6. ^ M. Couprie, G. Bertrand. Topological gray-scale watershed transform. In Proc. of SPIE Vision Geometry V, volume 3168, pages 136–146 (1997). http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.3.7654&rep=rep1&type=pdf
  7. ^ G. Bertrand. On topological watersheds. Journal of Mathematical Imaging and Vision, 22(2–3), pages 217–230 (2005).
  8. ^ Michel Couprie, Laurent Najman, Gilles Bertrand. Quasi-linear algorithms for the topological watershed. Journal of Mathematical Imaging and Vision, Springer Verlag, 2005, 22 (2-3), pp.231-249.
  9. ^ Barnes, R., Lehman, C., Mulla, D., 2014. Priority-flood: An optimal depression-filling and watershed-labeling algorithm for digital elevation models. Computers & Geosciences 62, 117–127. doi:10.1016/j.cageo.2013.04.024
  10. ^ Barnes, R., 2016. Parallel priority-flood depression filling for trillion cell digital elevation models on desktops or clusters. Computers & Geosciences. doi:10.1016/j.cageo.2016.07.001
  11. ^ Doerr, F. J. S., & Florence, A. J. (2020). A micro-XRT Image Analysis and Machine Learning Methodology for the Characterisation of Multi-Particulate Capsule Formulations. International Journal of Pharmaceutics: X, 2, 100041. https://doi.org/10.1016/j.ijpx.2020.100041
  12. ^ Jean Cousty, Gilles Bertrand, Laurent Najman, and Michel Couprie. Watershed Cuts: Minimum Spanning Forests and the Drop of Water Principle. IEEE Transactions on Pattern Analysis and Machine Intelligence. 31 (8). August 2009. pp. 1362–1374.
  13. ^ Cédric Allène, Jean-Yves Audibert, Michel Couprie and Renaud Keriven : "Some links between min-cuts, optimal spanning forests and watersheds", Image and Vision Computing, 2009.
  14. ^ Falcao, A.X. Stolfi, J. de Alencar Lotufo, R. : "The image foresting transform: theory, algorithms, and applications", In PAMI, 2004
  15. ^ Jean Cousty, Gilles Bertrand, Laurent Najman, and Michel Couprie. Watershed cuts: thinnings, shortest-path forests and topological watersheds. IEEE Transactions on Pattern Analysis and Machine Intelligence. 32 (5). 2010. pp. 925–939.
  16. ^ Grady, L.: "Random walks for image segmentation". PAMI, 2006
  17. ^ Camille Couprie, Leo Grady, Laurent Najman and Hugues Talbot, "Power Watersheds: A Unifying Graph-Based Optimization Framework”, IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 33, No. 7, pp. 1384-1399, July 2011
  18. ^ Laurent Najman, Michel Schmitt. Geodesic Saliency of Watershed Contours and Hierarchical Segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, Institute of Electrical and Electronics Engineers, 1996, 18 (12), pp.1163-1173.
  19. ^ Laurent Najman. On the equivalence between hierarchical segmentations and ultrametric watersheds. Journal of Mathematical Imaging and Vision, Springer Verlag, 2011, 40 (3), pp.231-247.

References

Read other articles:

Keuskupan Suburbikaris Sabina-Poggio MirtetoSabinensis-MandelensisKatolik Katedral di Poggio MirtetoLokasiNegaraItaliaProvinsi gerejawiRomaStatistikLuas918 km2 (354 sq mi)Populasi- Total- Katolik(per 2014)196.954182,478 (92.7%)Paroki82Imam77 (diosesan)29 (Ordo Relijius)InformasiDenominasiGereja KatolikRitusRitus RomaPendirianAbad ke-5KatedralCattedrale di S. Maria Assunta (Poggio Mirteto)KonkatedralConcattedrale di S. Liberatore Vescovo e Martire (Magliano S...

 

30th Governor of Wyoming Jim Geringer30th Governor of WyomingIn officeJanuary 2, 1995 – January 6, 2003Preceded byMike SullivanSucceeded byDave FreudenthalMember of the Wyoming Senatefrom the 3rd districtIn office1989–1995Succeeded byCurt Meier Personal detailsBorn (1944-04-24) April 24, 1944 (age 79)Wheatland, Wyoming, U.S.Political partyRepublicanSpouse Sharyn Geringer ​(m. 1967)​Children5EducationKansas State University (BS)Military serviceAll...

 

Mitsubishi Fuso RosaInformasiProdusenMitsubishi Fuso Truck and Bus CorporationJuga disebutBahman Pegasus (Iran)[1]Masa produksi1960-sekarangBodi & rangkaKelasMinibusBentuk kerangkaMinibus (bodi pendek dan panjang)Mobil terkaitMitsubishi Fuso CanterPenyalur dayaMesinMitsubishiTransmisiMitsubishi (manual), Aisin (otomatis)Mitsubishi Rosa atau Mitsubishi Fuso Rosa (kana: 三菱ふそう・ローザ) adalah bus mini yang diproduksi oleh Mitsubishi Fuso Truck and Bus Corporat...

Chinese TV series or program The Bride with White HairTraditional Chinese新白髮魔女傳Simplified Chinese新白发魔女传Hanyu PinyinXīn Báifà Mónǚ Zhuàn GenreWuxiaBased onBaifa Monü Zhuanby Liang YushengScreenplay byLiang ZhimingHan PeizhenChen PeiyinLang NuolinDirected byWong Wai-kitLiang GuoguanMa HuaganPresented byJiang HaoNicky WuStarringNicky WuMa SuLouis FanLiu SitongLi JieGuo ZhenniYe ZuxinTheme music composerYan YidanOpening themeLiuxiang (留香) performed by Nick...

 

Hafiz IndonesiaGenreAcara bakatReligiPresenterIrfan HakimJuriLulu Susanti (2013-2016, 2022, 2024)Amir Faishol Fath (2014-sekarang)Nasaruddin Umar (2014, 2016)Syekh Abdulkarim Al-Makki (2022)Syekh Ali Jaber (2014-2018, 2020) (Alm)Riza Muhammad (2013)Bachtiar Nasir (2013 & 2019)Cecep Maulana (2013)Nabila Abdul Rahim Bayan (2017-sekarang) Syekh Ahmad Al-Misry (2020-2021)Syekh Hussein Jaber (2022-Sekarang) Habib Nabil Al Musawwa (2019) Dennis Lim (2024-Sekarang) Kasif Heer (2024-Sekarang)Neg...

 

Cette page concerne l'année 1511 du calendrier julien. Chronologies Carte de Bernard Sylvanus, 1511.Données clés 1508 1509 1510  1511  1512 1513 1514Décennies :1480 1490 1500  1510  1520 1530 1540Siècles :XIVe XVe  XVIe  XVIIe XVIIIeMillénaires :-Ier Ier  IIe  IIIe Chronologies thématiques Art Architecture, Arts plastiques (Dessin, Gravure, Peinture et Sculpture), Littérature () et Musique classique   Ingénierie (), Archite...

Гадячский договор Присяга короля Яна Казимира на договоре подписана 10 июня 1659 года Тип договора Уния Дата подписания 16 сентября 1658 Место подписания Гадяч Подписали Речь Посполитая и Гетманщина Стороны Речь ПосполитаяГетманщина Северная война (1655—1660) Театры военны...

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: History of Saint Vincent and the Grenadines – news · newspapers · books · scholar · JSTOR (February 2013) (Learn how and when to remove this template message) Kingstown, St. Vincent, 1890sThe indigenous inhabitants of the islands of St. Vincent and the Grenadi...

 

Pour les articles homonymes, voir BVR. Une boîte de vitesses robotisée est une boîte de vitesses mécanique à engrenages parallèles à laquelle est greffé un système automatisé électrotechnique, qui pilote les sélecteurs et le ou les embrayages, souvent en association avec un système électrique ou hydraulique, et qui possède deux modes de fonctionnement : mode automatique, comme une boîte automatique changeant les rapports au moment le plus opportun[1] ; mode manuel, ...

Pour les articles homonymes, voir Mesa. Ne doit pas être confondu avec Tuya, Inselberg ou Tepuy. Cet article est une ébauche concernant la montagne et la géologie. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Mesa près de Los Alamos, Nouveau-Mexique. Mesa verde, Colorado (États-Unis). Gamsberg, Namibie. Une mesa (espagnol pour « table ») est un petit plateau ou une grande butte à sommet plat...

 

Ugly BettyTitolo originaleUgly Betty PaeseStati Uniti d'America Anno2006-2010 Formatoserie TV Generecommedia drammatica Stagioni4 Episodi85 Durata41 min (episodio) Lingua originaleinglese Rapporto16:9 CreditiIdeatoreFernando Gaitán da un'idea di Silvio Horta Interpreti e personaggi America Ferrera: Betty Suarez Vanessa Williams: Wilhelmina Slater Eric Mabius: Daniel Meade Tony Plana: Ignacio Suarez Ana Ortiz: Hilda Suarez Ashley Jensen: Christina McKinney Becki Newton: Amanda Tanen Michael U...

 

American football player and coach (1878–1951) Irving O. HuntBiographical detailsBorn(1878-01-30)January 30, 1878Providence, Rhode Island, U.S.DiedJune 17, 1951(1951-06-17) (aged 73)Kingston, Pennsylvania, U.S.Playing career1897–1898Brown1901Homestead Library & Athletic Club Coaching career (HC unless noted)1899–1900South Carolina Administrative career (AD unless noted)1899–1901South Carolina Head coaching recordOverall5–7 Irving Hunt, in the middle with a football sweater ...

Bethnal Green South West by-election ← 1911 19 February 1914 1918 →   Candidate Wilson Masterman Scurr Party Unionist Liberal Socialist Popular vote 2,828 2,804 316 Percentage 47.6% 47.1% 5.3% MP before election Masterman Liberal Subsequent MP Wilson Unionist The 1914 Bethnal Green South West by-election was a Parliamentary by-election held on 19 February 1914.[1] The constituency returned one Member of Parliament (MP) to the House of Commons of the Un...

 

NGC 4369   الكوكبة السلوقيان[1]  رمز الفهرس NGC 4369 (الفهرس العام الجديد)MCG+07-26-004 (فهرس المجرات الموروفولوجي)PGC 40396 (فهرس المجرات الرئيسية)IRAS 12221+3939 (IRAS)IRAS F12221+3939 (IRAS)2MASX J12243620+3922587 (Two Micron All-Sky Survey, Extended source catalogue)UGC 7489 (فهرس أوبسالا العام)Z 216-2 (فهرس المجرات وعناقيد المجرات)FIRST J122435.9...

 

Nissan SentraInformasiProdusenNissanMasa produksi1982–sekarangBodi & rangkaKelasSubkompak (1982-1986)kompak (1987-sekarang)Mobil terkaitRenault MeganeKronologiPendahuluNissan Sunny Nissan Sentra adalah mobil kompak yang dibuat oleh Nissan Motor Corporation. Pada dasarnya Sentra adalah nama lain dari Nissan Sunny yang dipasarkan khusus untuk di Amerika Serikat, namum nama Sentra juga digunakan di Indonesia, Malaysia, dan beberapa negara lain. Setelah Nissan Sunny tidak lagi diproduksi, S...

Russian state media outlet Russia BeyondRussia Beyond The Headlines insert in 20 November 2015 international edition of The New York TimesTypemultilingual projectOwner(s)ANO TV-NovostiEditor-in-chiefVsevolod Pulya[1]Founded2007; 17 years ago (2007)LanguageEnglish, Spanish, Portuguese, French, German, Indonesian, Japanese, Italian, Bulgarian, Macedonian, Serbian, Croatian, Slovene, RussianHeadquarters25 bld.1 Pyatnitskaya StreetMoscow, RussiaWebsiterbth.com Russia Bey...

 

Spiral galaxy in the constellation Ursa Minor NGC 5034Observation data (J2000 epoch)ConstellationUrsa MinorRight ascension13h 12m 19.01200s[1]Declination+70° 38′ 57.5408″[1]Redshift0.028983[2]Heliocentric radial velocity8563 km/s[2]Distance401.5 Mly (123.11 Mpc)[3]Apparent magnitude (B)14.06[4]CharacteristicsTypeSbc[4]Other designationsUGC 8295, MCG +12-13-001, PGC 45859[2] NGC 5034 is a ...

 

World War II battle during the German invasion of Greece For other uses, see Battle of Thermopylae (disambiguation). Battle of Thermopylae (1941)Part of the German invasion of GreeceGerman forces in Thermopylae following the battleDate24–25 April 1941LocationThermopylae, GreeceResult German victory Successful Allied withdrawalBelligerents  Australia New Zealand  GermanyCommanders and leaders George Vasey Harold Barrowclough Ferdinand Schörner Gustav FehnUnits involved Austra...

Theatre in the Community of Madrid, Spain Corral de comedias de Alcalá de Henares1602AddressPlaza de Cervantes, 14Alcalá de HenaresSpainCoordinates40°28′56″N 3°21′52″W / 40.482303°N 3.364571°W / 40.482303; -3.364571OperatorFundación Teatro La AbadíaCapacity200ConstructionRebuilt1769ArchitectFrancisco SánchezWebsitehttp://www.corraldealcala.com Logo Corral de Comedias de Alcalá de Henares in Alcalá de Henares, Community of Madrid, Spain, is one of the...

 

American football player and coach (1890–1980) Rube UrsellaBorn:(1890-01-11)January 11, 1890Minneapolis, Minnesota, U.S.Died:February 1, 1980(1980-02-01) (aged 90)Career informationPosition(s)Quarterback, Fullback, Halfback, Head CoachHeight5 ft 9 in (175 cm)Weight172 lb (78 kg)CollegeNoneCareer historyAs coach1912, 1917, 1921Minneapolis Marines1919-1920, 1925Rock Island IndependentsAs player1907–1917, 1921, 1927–1928 Minneapolis Marines/Red Jackets1916Wes...