{"id":21478395,"url":"https://github.com/mathworks-teaching-resources/morphology-in-image-processing","last_synced_at":"2025-07-05T00:06:43.908Z","repository":{"id":48993291,"uuid":"378213685","full_name":"MathWorks-Teaching-Resources/Morphology-in-Image-Processing","owner":"MathWorks-Teaching-Resources","description":"Interactive courseware module that introduces the fundamental morphological operations used in image processing.","archived":false,"fork":false,"pushed_at":"2024-10-31T18:16:29.000Z","size":5935,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"release","last_synced_at":"2025-04-09T03:11:18.261Z","etag":null,"topics":["courseware","cwm","image-processing","matlab","matlab-live-script","morphology"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MathWorks-Teaching-Resources.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-18T16:52:02.000Z","updated_at":"2024-10-14T21:12:30.000Z","dependencies_parsed_at":"2023-02-15T12:45:53.369Z","dependency_job_id":"bcd7eb71-1152-4131-b694-f43d44033d4d","html_url":"https://github.com/MathWorks-Teaching-Resources/Morphology-in-Image-Processing","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/MathWorks-Teaching-Resources/Morphology-in-Image-Processing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FMorphology-in-Image-Processing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FMorphology-in-Image-Processing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FMorphology-in-Image-Processing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FMorphology-in-Image-Processing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathWorks-Teaching-Resources","download_url":"https://codeload.github.com/MathWorks-Teaching-Resources/Morphology-in-Image-Processing/tar.gz/refs/heads/release","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FMorphology-in-Image-Processing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263636796,"owners_count":23492305,"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":["courseware","cwm","image-processing","matlab","matlab-live-script","morphology"],"created_at":"2024-11-23T11:18:01.545Z","updated_at":"2025-07-05T00:06:43.891Z","avatar_url":"https://github.com/MathWorks-Teaching-Resources.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# \u003cspan style=\"color:rgb(213,80,0)\"\u003eBinary Morphology in Image Processing\u003c/span\u003e\n\n\n[![View on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/94590-binary-morphology-in-image-processing) or [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Morphology-in-Image-Processing\u0026project=Morphology.prj\u0026file=README.mlx)\n\n[![MATLAB Versions Tested](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2FMathWorks-Teaching-Resources%2FMorphology-in-Image-Processing%2Frelease%2FImages%2FTestedWith.json)](https://MathWorks-Teaching-Resources.github.io/Morphology-in-Image-Processing)\n\n**Curriculum Module**\n\n_Created with R2024a. Compatible with R2024a and later releases._\n\n# Information\n\nThis curriculum module contains interactive [MATLAB® live scripts](https://www.mathworks.com/products/matlab/live-editor.html) that illustrate and apply the fundamentals of morphological operations used for processing binary images.\n\n\n## Background\n\nYou can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside class. This module covers the primary morphological operations of erosion and dilation, opening and closing, as well as relational and logical operators by illustrating and applying their use to simple images. It also includes examples of using binary morphology to analyze images of coins.\n\n\nThe instructions inside the live scripts will guide you through the exercises and activities. Get started with each live script by running it one section at a time. To stop running the script or a section midway (for example, when an animation is in progress), use the \u003cimg src=\"Images/EndIcon.png\" width=\"19\" alt=\"EndIcon.png\"\u003e Stop button in the **RUN** section of the **Live Editor** tab in the MATLAB Toolstrip.\n\n## Contact Us\n\nSolutions are available upon instructor request. Contact the [MathWorks teaching resources team](mailto:onlineteaching@mathworks.com) if you would like to request solutions, provide feedback, or if you have a question.\n\n\n## Prerequisites\n\nThis module assumes knowledge of MATLAB at the level of the [MATLAB Onramp](https://matlabacademy.mathworks.com/details/matlab-onramp/gettingstarted), a free two\\-hour introductory tutorial to learn the essentials of MATLAB. This module also assumes some familiarity with set theory and logical notation. \n\n\n## Getting Started\n### Accessing the Module\n### **On MATLAB Online:**\n\nUse the [\u003cimg src=\"Images/OpenInMO.png\" width=\"136\" alt=\"OpenInMO.png\"\u003e](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Morphology-in-Image-Processing\u0026project=Morphology.prj) link to download the module. You will be prompted to log in or create a MathWorks account. The project will be loaded, and you will see an app with several navigation options to get you started.\n\n### **On Desktop:**\n\nDownload or clone this repository. Open MATLAB, navigate to the folder containing these scripts and double\\-click on [Morphology.prj](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Morphology-in-Image-Processing\u0026project=Morphology.prj\u0026file=README.mlx). It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start. \n\n\nEnsure you have all the required products (listed below) installed. If you need to include a product, add it using the Add\\-On Explorer. To install an add\\-on, go to the **Home** tab and select  \u003cimg src=\"Images/AddOnsIcon.png\" width=\"16\" alt=\"AddOnsIcon.png\"\u003e **Add-Ons** \u003e **Get Add-Ons**. \n\n\n## Products\n\nMATLAB® and the Image Processing Toolbox™ are used throughout. \n\n# Scripts\n## [**BinaryMorphologyBasics.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Morphology-in-Image-Processing\u0026project=Morphology.prj\u0026file=Scripts/BinaryMorphologyBasics.mlx) \n|      |      |\n| :-- | :-- |\n|  | **In this script, students will...** \u003cbr\u003e   |\n| \u003cimg src=\"Images/DilationAnimation.gif\" width=\"171\" alt=\"DilationAnimation.gif\"\u003e \u003cbr\u003e  | $\\bullet$ define and apply the primary morphological operations: erosion and dilation \u003cbr\u003e $\\bullet$ explain the use of relational and logical operators in the context of binary image processing \u003cbr\u003e $\\bullet$ define and apply compound morphological operations like opening and closing \u003cbr\u003e $\\bullet$ explain the effect of using structuring elements of different shapes and sizes for each morphological operation \u003cbr\u003e $\\bullet$ identify and apply the appropriate morphological operations and structuring elements to achieve a given processing outcome \u003cbr\u003e $\\bullet$ use simple shapes to filter objects in an image \u003cbr\u003e   |\n|      |       |\n\n\n[**PracticeProblems.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Morphology-in-Image-Processing\u0026project=Morphology.prj\u0026file=Scripts/PracticeProblems.mlx) \n\n# Related Courses\n## [Image Processing Onramp](https://matlabacademy.mathworks.com/details/image-processing-onramp/imageprocessing)\n\nLearn the basics of practical image processing techniques in MATLAB. Modify and extract information from images to develop an algorithm.\n\n\nOr feel free to explore our other [modular courseware content](https://www.mathworks.com/matlabcentral/fileexchange/?q=tag%3A%22courseware+module%22\u0026sort=downloads_desc_30d).\n\n# Educator Resources\n-  [Educator Page](https://www.mathworks.com/academia/educators.html) \n\n# Contribute \n\nLooking for more? Find an issue? Have a suggestion? Please contact the [MathWorks teaching resources team](mailto:%20onlineteaching@mathworks.com). If you want to contribute directly to this project, you can find information about how to do so in the [CONTRIBUTING.md](https://github.com/MathWorks-Teaching-Resources/Morphology-in-Image-Processing/blob/release/CONTRIBUTING.md) page on GitHub.\n\n\n *©* Copyright 2021 The MathWorks™, Inc\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-teaching-resources%2Fmorphology-in-image-processing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathworks-teaching-resources%2Fmorphology-in-image-processing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-teaching-resources%2Fmorphology-in-image-processing/lists"}