{"id":26829496,"url":"https://github.com/kumaarbalbir/reg-grow-bfs","last_synced_at":"2025-03-30T13:17:05.859Z","repository":{"id":255038305,"uuid":"848346547","full_name":"KumaarBalbir/reg-grow-bfs","owner":"KumaarBalbir","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":"2024-08-27T17:31:57.268Z","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/KumaarBalbir.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/KumaarBalbir/reg-grow-bfs","commit_stats":null,"previous_names":["kumaarbalbir/reg-grow-bfs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KumaarBalbir%2Freg-grow-bfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KumaarBalbir%2Freg-grow-bfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KumaarBalbir%2Freg-grow-bfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KumaarBalbir%2Freg-grow-bfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KumaarBalbir","download_url":"https://codeload.github.com/KumaarBalbir/reg-grow-bfs/tar.gz/refs/heads/local","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246320189,"owners_count":20758410,"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":["cpp","region-growing-segmentation"],"created_at":"2025-03-30T13:17:05.399Z","updated_at":"2025-03-30T13:17:05.852Z","avatar_url":"https://github.com/KumaarBalbir.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%2Fkumaarbalbir%2Freg-grow-bfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkumaarbalbir%2Freg-grow-bfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkumaarbalbir%2Freg-grow-bfs/lists"}