{"id":30284908,"url":"https://github.com/byteb8/reg-grow-bfs","last_synced_at":"2025-08-16T19:38:35.229Z","repository":{"id":255038305,"uuid":"848346547","full_name":"byteB8/reg-grow-bfs","owner":"byteB8","description":"C++ implementations of a region-growing algorithm using OpenCV","archived":false,"fork":false,"pushed_at":"2024-08-27T15:56:10.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"local","last_synced_at":"2025-07-19T16:57:12.000Z","etag":null,"topics":["cpp","region-growing-segmentation"],"latest_commit_sha":null,"homepage":"","language":"C++","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/byteB8.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-27T15:40:01.000Z","updated_at":"2024-08-27T15:57:36.000Z","dependencies_parsed_at":"2024-08-27T17:42:13.988Z","dependency_job_id":null,"html_url":"https://github.com/byteB8/reg-grow-bfs","commit_stats":null,"previous_names":["kumaarbalbir/reg-grow-bfs","byteb8/reg-grow-bfs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byteB8/reg-grow-bfs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteB8%2Freg-grow-bfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteB8%2Freg-grow-bfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteB8%2Freg-grow-bfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteB8%2Freg-grow-bfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byteB8","download_url":"https://codeload.github.com/byteB8/reg-grow-bfs/tar.gz/refs/heads/local","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteB8%2Freg-grow-bfs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270763345,"owners_count":24641016,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cpp","region-growing-segmentation"],"created_at":"2025-08-16T19:38:32.405Z","updated_at":"2025-08-16T19:38:35.214Z","avatar_url":"https://github.com/byteB8.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Region Growing Using Opencv, BFS search and Euclid distance\r\n\r\nThis repository contains two C++ implementations of a region-growing algorithm using OpenCV. The algorithm segments an image into regions based on the similarity of pixel colors, utilizing Breadth-First Search (BFS) and Euclidean distance for region expansion.\r\n\r\n\r\n#### Prerequisites\r\n\r\n- OpenCV 4.x installed on your system.\r\n- A C++ compiler (e.g., g++).\r\n- CMake (if you prefer building with it instead of the Makefile).\r\n\r\n#### Installing Opencv on Ubuntu\r\n`sudo apt update\r\n sudo apt install libopencv-dev\r\n`\r\n\r\n#### Compilation\r\n##### Using make\r\n- Navigate to the src/ directory: `cd src`\r\n- Run the following command to compile both implementations: `make`. This will generate two executables: `reg_grow` and `reg_grow_dir`.\r\n- To clean up the compiled files, use: `make clean`\r\n\r\n#### Running the Program\r\nTo run the program, use the following command (inside src directory): `./region_grow \u003cimage_path\u003e \u003cthreshold\u003e` replace the placeholder with the desired value.\r\nExample: `./region_grow ../images/test-image-rg.jpg 12`\r\nThis will execute the region-growing algorithm on the sample image with a threshold value of 12.\r\n#### Result\r\nHere is the original image used for segmentation:\r\n\r\n![Original Image](images/test-image-rg.jpg)\r\n\r\nHere is the result after applying the region-growing algorithm:\r\n\r\n![Segmented Image](images/segmented.jpg)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteb8%2Freg-grow-bfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyteb8%2Freg-grow-bfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteb8%2Freg-grow-bfs/lists"}