{"id":20583749,"url":"https://github.com/mzur/watershed","last_synced_at":"2025-04-14T20:32:52.250Z","repository":{"id":53701320,"uuid":"108135559","full_name":"mzur/watershed","owner":"mzur","description":"A Python implementation of the watershed image segmentation algorithm","archived":false,"fork":false,"pushed_at":"2017-10-25T09:15:56.000Z","size":13,"stargazers_count":85,"open_issues_count":1,"forks_count":36,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T08:51:12.549Z","etag":null,"topics":["image-processing","python","watershed-algorithm"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mzur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-24T14:06:09.000Z","updated_at":"2025-03-19T14:13:50.000Z","dependencies_parsed_at":"2022-08-30T22:53:14.777Z","dependency_job_id":null,"html_url":"https://github.com/mzur/watershed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzur%2Fwatershed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzur%2Fwatershed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzur%2Fwatershed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzur%2Fwatershed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mzur","download_url":"https://codeload.github.com/mzur/watershed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248956007,"owners_count":21189272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-processing","python","watershed-algorithm"],"created_at":"2024-11-16T06:43:34.111Z","updated_at":"2025-04-14T20:32:52.220Z","avatar_url":"https://github.com/mzur.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Watershed\n\nA simple (but not very fast) Python implementation of [Determining watersheds in digital pictures via flooding simulations](http://dx.doi.org/10.1117/12.24211).\n\n![source image](ex.png) ![labelled image](ws.png)\n\nIn contrast to [`skimage.morphology.watershed`](http://scikit-image.org/docs/dev/api/skimage.morphology.html#skimage.morphology.watershed) and [`cv2.watershed`](https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_watershed/py_watershed.html) this implementation does not use marker seeds.\n\n## Usage\n\n```python\nimport numpy as np\nfrom Watershed import Watershed\nfrom PIL import Image\nimport matplotlib.pyplot as plt\n\nw = Watershed()\nimage = np.array(Image.open('ex.png'))\nlabels = w.apply(image)\nplt.imshow(labels, cmap='Paired', interpolation='nearest')\nplt.show()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzur%2Fwatershed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmzur%2Fwatershed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzur%2Fwatershed/lists"}