{"id":27156700,"url":"https://github.com/sivanajani/regiongrowinglabeln","last_synced_at":"2025-04-10T02:18:23.743Z","repository":{"id":286710835,"uuid":"962297578","full_name":"Sivanajani/RegionGrowingLabeln","owner":"Sivanajani","description":"Region Growing segmentation of star-like blobs using Python, NumPy, Matplotlib, and scikit-image.","archived":false,"fork":false,"pushed_at":"2025-04-08T01:06:41.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T01:26:33.936Z","etag":null,"topics":["computer-vision","flood-fill","image-processing","labeling","matplotlib","python","region-growing","scikit-image","segmentation","visualization"],"latest_commit_sha":null,"homepage":"","language":null,"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/Sivanajani.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":"2025-04-08T00:23:39.000Z","updated_at":"2025-04-08T01:09:51.000Z","dependencies_parsed_at":"2025-04-08T01:26:38.225Z","dependency_job_id":"627937b5-76ae-4d9a-aacc-3d4f78d5c58c","html_url":"https://github.com/Sivanajani/RegionGrowingLabeln","commit_stats":null,"previous_names":["sivanajani/regiongrowinglabeln"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sivanajani%2FRegionGrowingLabeln","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sivanajani%2FRegionGrowingLabeln/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sivanajani%2FRegionGrowingLabeln/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sivanajani%2FRegionGrowingLabeln/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sivanajani","download_url":"https://codeload.github.com/Sivanajani/RegionGrowingLabeln/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247924344,"owners_count":21019164,"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":["computer-vision","flood-fill","image-processing","labeling","matplotlib","python","region-growing","scikit-image","segmentation","visualization"],"created_at":"2025-04-08T20:32:31.635Z","updated_at":"2025-04-10T02:18:23.736Z","avatar_url":"https://github.com/Sivanajani.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌌 Region Growing – Automatic Star Labeling (Image Segmentation with Python)\n\nThis project implements an image processing routine to automatically label segmented objects (blobs) in an image.\n\nThe goal is to detect, label, and individually visualize stars in the input image `stars.png` using a simplified **Region Growing** algorithm based on **Flood Fill**.\n\n---\n\n## 🔧 Tech Stack \u0026 Methods\n\n- **Python** · **NumPy** · **Matplotlib** · **Scikit-Image**\n- Flood Fill (Region Growing)  \n- Binary segmentation \u0026 labeling  \n- Interactive visualization\n\n---\n\n## 📌 Features\n\n- Load and convert RGB images to grayscale\n- Automatically compute threshold for binarization\n- Detect connected regions (stars) using `skimage.segmentation.flood()`\n- Assign unique labels to each blob (star)\n- Visualize all stars in color using `nipy_spectral`\n- Show individual binary masks for each detected star (one per window)\n- Interactive hover: Display blob ID when cursor is near a star\n- Output number of detected stars in the console\n\n---\n## 🖼️ Output\n\nEach detected star is assigned a unique label and color in the \"Label Map\".  \nIndividual binary masks are shown for further analysis or visualization.\n\n---\n## 📦 Dependencies\n\n- `matplotlib`\n- `numpy`\n- `scikit-image`\n\nInstall with:\n\n```bash\npip install matplotlib numpy scikit-image\n```\n---\n### 📸 Visual Overview\n\n#### 🖼️ Input: Original Star Image\n\nThe script starts with this image of stars:\n\n![stars.png – Input](./stars.png)\n\n---\n\n#### ⚫ Binary Segmentation (Thresholding Step)\n\nAfter grayscale conversion and thresholding, the image is binarized:  \nThis mask (`segmentation_mask.png`) highlights bright areas that may contain stars.\n\n![segmentation_mask.png](./segmentation_mask.png)\n\n---\n\n#### 🌈 Labeled Output – Region Growing (Flood Fill)\n\nThe Flood Fill algorithm assigns a unique label to each connected region.  \nThis is visualized using a color-coded Label Map:\n\n![LabelMap.png](./LabelMap.png)\n\n---\n\n#### 🔎 Example: Binary Mask of a Single Star\n\nEach detected star (blob) is visualized in its own grayscale binary mask.\n\nExample – Blob 1:\n\n![Blob 1 – Binary Mask](./SegmentierungsmaskeBlob1.png)\n\n---\n\n## 📄 License\nThis project was developed as part of a university project at FHNW and is intended for demonstration and educational purposes only.\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivanajani%2Fregiongrowinglabeln","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsivanajani%2Fregiongrowinglabeln","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivanajani%2Fregiongrowinglabeln/lists"}