{"id":26325192,"url":"https://github.com/kadyb/image-segmentation","last_synced_at":"2025-03-15T18:32:10.631Z","repository":{"id":125636530,"uuid":"599520603","full_name":"kadyb/image-segmentation","owner":"kadyb","description":"Comparison of kmeans and supercells for image semgentiation in R","archived":false,"fork":false,"pushed_at":"2023-02-12T16:35:11.000Z","size":11946,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-27T05:11:29.976Z","etag":null,"topics":["clustering","image","kmeans","pixel","r","raster","segmentation","slic","spatial","superpixels"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kadyb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-09T10:09:45.000Z","updated_at":"2023-02-11T19:23:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f81dd35-5140-486e-abbf-70dbfc72bf74","html_url":"https://github.com/kadyb/image-segmentation","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":"0.33333333333333337","last_synced_commit":"1201e32bfa3c2a0913bdae2e2bb9523f338c8b5a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadyb%2Fimage-segmentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadyb%2Fimage-segmentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadyb%2Fimage-segmentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadyb%2Fimage-segmentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kadyb","download_url":"https://codeload.github.com/kadyb/image-segmentation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243775148,"owners_count":20346145,"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":["clustering","image","kmeans","pixel","r","raster","segmentation","slic","spatial","superpixels"],"created_at":"2025-03-15T18:32:09.813Z","updated_at":"2025-03-15T18:32:10.621Z","avatar_url":"https://github.com/kadyb.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image segmentation in R\n\nIn this repository you will find examples of image segmentation scripts in R.\nExample `ortho.R` shows segmentation on a small RGB orthoimage, while example\n`landsat.R` uses a multiband spectral image (8261 x 8201 pixels x 7 bands).\nThe Quarto file `comparison.qmd` contains a comparison of the simple kmeans\nclustering algorithm with [supercells](https://github.com/Nowosad/supercells)\nbased on SLIC algorithm.\n\nNote: Currently the kmeans prediction method in `landsat.R` is very slow\n(calculations take ~1 hour). Alternatively, you can check out the example\nin `landsat_blocks.R`, which uses processing in blocks (it takes ~18 min),\nbut unfortunately the boundaries between blocks are strongly visible.\n\n![segmentation](https://user-images.githubusercontent.com/35004826/217364937-4e9e5c14-a71b-4601-9de5-8791b777d50b.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadyb%2Fimage-segmentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkadyb%2Fimage-segmentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadyb%2Fimage-segmentation/lists"}