{"id":16443037,"url":"https://github.com/jsilvela/morphological-image-processing","last_synced_at":"2025-02-26T04:44:40.298Z","repository":{"id":1096606,"uuid":"955285","full_name":"jsilvela/morphological-image-processing","owner":"jsilvela","description":"Code for erosion, thresholding, skeletonization and other morphological operations","archived":false,"fork":false,"pushed_at":"2022-05-22T15:55:25.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T18:30:38.310Z","etag":null,"topics":["image-processing"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsilvela.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-01T20:31:13.000Z","updated_at":"2022-10-13T09:49:53.000Z","dependencies_parsed_at":"2022-08-16T12:00:41.848Z","dependency_job_id":null,"html_url":"https://github.com/jsilvela/morphological-image-processing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvela%2Fmorphological-image-processing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvela%2Fmorphological-image-processing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvela%2Fmorphological-image-processing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvela%2Fmorphological-image-processing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsilvela","download_url":"https://codeload.github.com/jsilvela/morphological-image-processing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240794917,"owners_count":19858719,"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":["image-processing"],"created_at":"2024-10-11T09:19:19.694Z","updated_at":"2025-02-26T04:44:40.246Z","avatar_url":"https://github.com/jsilvela.png","language":"C++","readme":"# Morphological image processing\n\nI wrote this code in 2001 for my thesis on image processing, and\nfrom that I got an article published:\n\n*Breadth-First Search and Its Application to Image Processing Problems*,\npublished on IEEE Transactions on Image Processing, VOL. 10, NO. 8, August 2001.\n[link](https://silvela.org/jaime/BFSpaper.pdf)\n\nI have made no functionality change since then, nor have I tried to update\nto a more modern version of GTK+.\n\nTested on a Raspberry Pi running *stretch*, May 2022.\n\n## Installing\n\nYou need `libtiff` to be installed.\nIn a Debian-derived system:\n\n``` sh\napt-get install libtiff libtiff-dev\n```\n\nIf you want to run the GTK+ UI, you will need `libgtk-dev`\ntoo. This was developed way back when, on GTK+ version 2.\n\n``` sh\nsudo apt-get install libgtk2.0-dev\n```\n\nThen:\n\n``` sh\nmake\n```\n\nWill build the two executables: `pro-image` and `pro-gtk-image`.\nYou can skip building the GTK+ bit, by doing:\n\n``` sh\nmake pro-image\n```\n\n## Using\n\nThe two executables take in a single TIFF image as input, and after\nstarting, become a command-line interpreter.\n\nFor example, we start processing the image `manos/a30000.tif`.\nIn the terminal:\n\n``` sh\n./pro-gtk-image manos/a30000.tif\n```\n\nNow, we can use the terminal as a REPL.\nOne or more commands may be issued, followed by a newline.\nAfter each, a GTK+ window will display the result of the command.\n\nE.g.\n\n``` sh\nthreshold 100\n```\n\n→ a window opens showing the image after thresholding\n\n``` sh\nregions\n```\n\n→ a window opens showing the image after cleaning the noisy regions\n\nThe commands may also be chained. For example:\n\n``` sh\nthreshold 100 regions\n```\n\n… a window will open after each command.\n\n### Non-graphical executable\n\nThe non-graphical executable does not produce a window with the results,\nof course. We should write out to a TIFF file to show progress.\n\n``` sh\n% ./pro-image manos/a30000.tif\n% threshold 100\n% regions\n% boundary\n% skeleton\n% write skel.tif\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsilvela%2Fmorphological-image-processing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsilvela%2Fmorphological-image-processing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsilvela%2Fmorphological-image-processing/lists"}