{"id":25129587,"url":"https://github.com/camilomartinezm/supervised-micrograph-segmentation","last_synced_at":"2026-02-09T03:02:39.849Z","repository":{"id":68175124,"uuid":"313592270","full_name":"CamiloMartinezM/supervised-micrograph-segmentation","owner":"CamiloMartinezM","description":"Segmentation Model for micrographs of hypoeutectoid steels, based on superpixels and textons, with an added ability to estimate the mean apparent interlaminar spacing of pearlite and the mechanical properties.","archived":false,"fork":false,"pushed_at":"2025-01-31T12:34:35.000Z","size":163594,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T16:28:00.747Z","etag":null,"topics":["machine-learning","micrograph","segmentation","superpixels","texton"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CamiloMartinezM.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-11-17T11:02:34.000Z","updated_at":"2025-01-31T12:34:39.000Z","dependencies_parsed_at":"2025-04-23T16:37:40.958Z","dependency_job_id":null,"html_url":"https://github.com/CamiloMartinezM/supervised-micrograph-segmentation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CamiloMartinezM/supervised-micrograph-segmentation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamiloMartinezM%2Fsupervised-micrograph-segmentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamiloMartinezM%2Fsupervised-micrograph-segmentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamiloMartinezM%2Fsupervised-micrograph-segmentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamiloMartinezM%2Fsupervised-micrograph-segmentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CamiloMartinezM","download_url":"https://codeload.github.com/CamiloMartinezM/supervised-micrograph-segmentation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamiloMartinezM%2Fsupervised-micrograph-segmentation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29255380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T01:52:29.835Z","status":"online","status_checked_at":"2026-02-09T02:00:09.501Z","response_time":56,"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":["machine-learning","micrograph","segmentation","superpixels","texton"],"created_at":"2025-02-08T12:18:11.293Z","updated_at":"2026-02-09T03:02:39.818Z","avatar_url":"https://github.com/CamiloMartinezM.png","language":"Python","readme":"# Supervised Superpixel-Texton Approach for Micrograph Segmentation\n\n**Version 1.0.0**\n\nThis repository holds the code and final model for the bachelor thesis titled \"[Application of Computer Vision in the Analysis of Microstructures and Obtaining Structure-Property Relations](https://repositorio.uniandes.edu.co/entities/publication/60ccf854-b041-441b-b7f7-8a79662c4bc1)\" (2021). This code requires Python 3.6 or newer.\n\n# Project structure\n- `model.py` does the \"heavylifting\", from the loading and pre-processing of images to the training and testing of a segmentation model and the post-processing of segmented micrographs (which include the estimation of the mean apparent interlaminar spacing of pearlite and the mechanical properties, based on that value and the volume fractions of the steel phases and morphologies present).\n- `utils_classes.py` and `utils_functions.py` contain helper classes and functions, respectively.\n- `app.py` is a console with the most important functions in `model.py`.\n\n     ![Console menu](final_model/console_menu.png \"Console menu\")\n     \n### Requirements\nRefer to [requirements.txt](requirements.txt).\n\n# Segmentation model\n![First part of segmentation model](final_model/image_segmentation_firstpart.png \"First part of a micrograph segmentation\")\n![Second part of segmentation model](final_model/image_segmentation_parttwo.png \"Second part of a micrograph segmentation\")\n\n# Model selection tool\nThe console (`app.py`) includes an option to create a brand-new model for segmentation.\n### Changeable parameters\n- **Labeled images**: If the user has labeled images with the correct format, a folder of annotated images can be specified, thus creating a segmentation model for those classes and images, and not steel micrographs.\n- **K**: Number of textons, i.e, number of clusters for *K-Means clustering*.\n- **Superpixel-generation algorithm**: Possibilities include quickshift, slic, felzenszwalb and watershed. Depending on the chosen algorithm, the user can change the required parameters to specify.\n### Flow diagram\n![Model selection tool](final_model/model_selection.png \"Flow diagram of the model selection tool\")\n\n# Notes\n* `saved_variables/ground_truth.pickle` and `ground_truth_with_originals.pickle` were deleted because of space.\n  \n# License \u0026 copyright\n© Camilo Martínez M., \u003cca.martinezm2@uniandes.edu.co\u003e\n\nLicensed under [GPL v3](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamilomartinezm%2Fsupervised-micrograph-segmentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamilomartinezm%2Fsupervised-micrograph-segmentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamilomartinezm%2Fsupervised-micrograph-segmentation/lists"}